-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Authorizing new public key just works on Ropsten and not on the mainnet !! #252
Comments
Well, the error tells that your Ethereum account doesn't have enough funds to authorize ChangePubKey operation onchain.
|
Thanks @popzxc for your answer |
You invoke If you want to perform |
well if i don't call |
This error ("Change pubkey tx is not authorized onchain") makes me think that you provided an |
yes i do ,here is the whole code :
|
That looks pretty odd. This kind of error is returned if Thus, if Is this code snippet is a complete piece of code you're running (apart of |
yeah it is odd ... that's what i'm trying to figure out . the purpose of this code is to just Authorize the account and literally this is all of the code ( except for those lines of importing libraries and initializing providers) |
Here is my code :
Error for the same code on mainnet network :
Error: insufficient funds for intrinsic transaction cost (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{"jsonrpc":"2.0","id":46,"error":{"code":-32000,"message":"insufficient funds for gas * price + value"}}","error":{"code":-32000},"requestBody":"{"method":"eth_sendRawTransaction","params": ......
syncWallet.onchainAuthSigningKey();
this function perfectly works on ropsten but not on mainnet!
is this issue arising from my code or library somehow has an issue ?
thanks for your help in advance.
The text was updated successfully, but these errors were encountered: