Open desimira opened 5 years ago
Oh! So, v4 does not support Fixed-Point math, but I have added in in v5, but haven't had any test cases, since Solidity does not support them. Are they fully supported in the Vyper? If so, I can add the test cases and enable Fixed fully in v5, which will be going into a public beta soon.
“Yes they are supported in Vyper. Is there any way to enable them in v4?”
No, not in v4. The fixed
and ufixed
type are not supported at all. In v5 they will be, and I will use vyper to add test cases. It should be available soon for public beta.
Thanks! :)
Great! Thanks! :)
It doesn't seem to work in v5 as well, at least i get this:
index.js?ffb2:185 Uncaught (in promise) Error: invalid type (argument="type", value="fixed168x10", code=INVALID_ARGUMENT, version=abi/5.5.0)
at Logger.makeError (index.js?ffb2:185)
at Logger.throwError (index.js?ffb2:194)
at Logger.throwArgumentError (index.js?ffb2:197)
at AbiCoder._getCoder (abi-coder.js?5791:63)
at eval (abi-coder.js?5791:84)
at Array.map (<anonymous>)
at AbiCoder.encode (abi-coder.js?5791:84)
at Interface._encodeParams (interface.js?a807:254)
at Interface.encodeFunctionData (interface.js?a807:296)
at eval (index.js?f179:124)
at Generator.next (<anonymous>)
at fulfilled (index.js?f179:5)
Is it expected to be in some future release or is it on hold?
Hi Richard! I am trying to deploy a vyper contract with ethersjs. Unfortunately it throws an error when contract contains some types that are not supported in Solidity, e.g. decimal. Here is the error:
Here is the contract's ABI:
And here is the contract itself:
Is there a chance ethersjs to not throw error when ABI includes untypical types or to add them as a valid type?