You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @skywinder. The issue happened when a contract ABI included {"stateMutability":"payable","type":"receive"} on it's body. A type apparently missing on ABI.Element. Hence the parsing error which brought back a nil value.
I added a new receive type at ABI.Element that parses this type.
This ABI element, when present in a contract, indicates that the contract allows to receive tokens through a function call.
Problem:
I'm trying to initialize a smart contract uploaded lately on the Ropsten Test Network but without success so far.
Here is the contract: https://ropsten.etherscan.io/address/0x36cC04E8fDb5237EAD5B475089c640834436e61b
Using:
pod 'web3swift' , :git => 'https://github.com/lvyikai/web3swift.git', :branch => 'develop'
Steps to reproduce:
Where Uniswap.address is:
and Uniswap.ABI is :
For some reason, the library initializes the Contract when I use the Web3.Utils.erc20ABI, which is :
Your help would be much appreciated
Thank you in advance for taking the time to read this
The text was updated successfully, but these errors were encountered: