-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instance member 'contract' cannot be used on type 'web3'; did you mean to use a value of this type instead? #352
Comments
Can someone like help me please |
Hi Please share screen shot of your error |
@veerchauhan here's the screenshot, thank you for the response, what I'm trying to do is create a method to send etheruem in addition I'm having an error with the check Balance method, it says I've reached the maximum amount of times for a request again thank you |
Please find the below code `
` You can always follow the documentation |
Authour of this issue haven't replied, so I suppose it was resolved and thus closing this issue. To anyone still experiencing similar problems, feel free to reopen it. |
This line of code causes error's when I try to test the send ether method
Line: let contract = web3.contract(Web3.Utils.coldWalletABI, at: toAddress, abiVersion: 2)!
This is a swift code:
` let value: String = "1.0" // In Ether
let walletAddress = EthereumAddress(wallet.address)! // Your wallet address
let toAddress = EthereumAddress(toAddressString)!
let contract = web3.contract(Web3.Utils.coldWalletABI, at: toAddress, abiVersion: 2)!
The text was updated successfully, but these errors were encountered: