This repository has been archived by the owner on Mar 5, 2025. It is now read-only.
Version 19.0 no longer supports BigNumber objects in contract methods #925
Labels
Bug
Addressing a bug
It appears that the latest update has broken contract methods, which are directly passed BigNumber objects now, from the following release change:
Checks for the right argument number in contract functions
The error returned when passing a formerly working function, with a BigNumber as a parameter is:
Error: Invalid number of arguments to Solidity function
Reverting to
18.2
or calling.valueOf()
on the BigNumber parameter is a temporary patch, but I believe this should be fixed, as it states in the web3 API doc that the BigNumber type is a valid parameter to pass directly!This issue was previously brought up on metamask MetaMask/metamask-extension#1778
The text was updated successfully, but these errors were encountered: