Using web3-eth-contract causing TransactionRevertedWithoutReasonError #6542
Unanswered
tadpole2077
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Intro
In attempting to follow Web3 library use guidance "We encourage users to use only required individual packages listed in following table .." , so I'm now removing the large Web3 package and only including the following smaller packages needed within my app.
Using Provider Metamask V11.2.0
Code Changes
Converting from using Web3 module (web.eth.Contract)
to using web3-eth-contract (Contract) as follows:
to now using:
On all writable calls to the EVM method that includes input arguments it fails with a Revert. Works fine/as expected on calls to view methods.
Getting a MetaMask (provider) response of TransactionRevertedWithoutReasonError: Transaction has been reverted by the EVM: {"type":"2" ..
Any view type calls succeed.
Its not an issue related to the contract methods, or the abi json.
I think this solely relates to a instantiation difference between web3-eth-contract and web3 for contract generation.
Others have reported this issue on ethereum.stackexchange.com over the last month period ethereum.stackexchange.com - Questions- 155818
Notes:
out of ideas currently.. appreciate any suggestions.
Beta Was this translation helpful? Give feedback.
All reactions