-
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
Failed to fetch gas estimate #283
Comments
So I tried to send a rig which length is 32, it works fine, but the rig I got is a 66 length string, how should I do |
This is an issue with your parameters typically. Transfer Example:
|
Another reason is because the contract is rejecting the transaction. For instance, I just got the same error because the user submitting the transaction was not an owner on the contract. Not sure if this is EXACTLY correct, but I added the user as an owner, and then the transaction went through. |
@DarcyLau Hey, did you find a solution for this issue? |
When I call a contract method and get this error,
`let url = URL(string: nodeAddress)
let web3 = try Web3.new(url!)
web3.provider.network = Networks.Custom(networkID: BigUInt("666666"))
web3.addKeystoreManager(self.keystoreManager!)
and this is my func in abi:
{
"inputs": [
{
"internalType": "bytes32",
"name": "rig",
"type": "bytes32"
}
],
"name": "addRig",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}
so I'v seen this error before, that time I deleted the line to set options.value and put amount in parameters, this time when I tried like this, the transaction returned nil
The text was updated successfully, but these errors were encountered: