2

I'm doing some division in vyper (v0.4.0b), but I keep getting this error:

InvalidOperation: Cannot perform decimal division on uint256

  (hint: did you mean `(convert(price, uint256) * ADDITIONAL_FEED_PRECISION) * amount // PRECISION`?)

When my original statement has a single backslash.

Why am I getting this error?

1 Answer 1

1

Vyper v0.4.0 replaces the normal (single) division operator with a double slash (//) division operator, as can be seen here, here and here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.