Skip to content
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

Weird error when sending a Tx with cast #1866

Closed
2 tasks done
mmenoxx opened this issue Jun 7, 2022 · 3 comments
Closed
2 tasks done

Weird error when sending a Tx with cast #1866

mmenoxx opened this issue Jun 7, 2022 · 3 comments
Labels
T-bug Type: bug

Comments

@mmenoxx
Copy link

mmenoxx commented Jun 7, 2022

Component

Cast

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (3fc1491 2022-06-06T00:12:33.657656525Z)

What command(s) is the bug in?

cast send --rpc-url=$RPC_URL --private-key=$PRIVATE_KEY

Operating System

Linux

Describe the bug

When sending the following Tx on a local Anvile node:

cast send --rpc-url=$RPC_URL --private-key=$PRIVATE_KEY --value 0.08ether 0x5fbdb2315678afecb367f032d93f642f64180aa3 "mintTo(address)" 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266

The following error is raised:

Error: 
   0: specified chain_id is different than the signer's chain_id
@mmenoxx mmenoxx added the T-bug Type: bug label Jun 7, 2022
@onbjerg onbjerg added this to Foundry Jun 7, 2022
@onbjerg onbjerg moved this to Todo in Foundry Jun 7, 2022
@davisshaver
Copy link

I've run into this as well. FWIW, I was able to reproduce the issue with foundryup but then when I installed nightly-1616380f254f7c0d83ac75c7d4056f0401b5e417 the error went away. This PR seems like possibly related: #1839

@mattsse
Copy link
Member

mattsse commented Jun 7, 2022

oh, sorry about that, that's an oversight

gakonst/ethers-rs#1356 will fix this

@mattsse mattsse closed this as completed Jun 8, 2022
Repository owner moved this from Todo to Done in Foundry Jun 8, 2022
@mmenoxx
Copy link
Author

mmenoxx commented Jun 10, 2022

@mattsse I updated to the very last version with foundryup and retested, and I still have the same problem/error

gakonst added a commit to gakonst/ethers-rs that referenced this issue Jun 14, 2022
fixes: foundry-rs/foundry#1866, because
previously we'd read chain id 31337, parse it as Dev, and then when
convert it to the wrong number (1337) which would make the transaction's
chain id not match the signer's
gakonst added a commit that referenced this issue Jun 14, 2022
jsLover1117 added a commit to jsLover1117/ethers-rs that referenced this issue Jul 17, 2022
fixes: foundry-rs/foundry#1866, because
previously we'd read chain id 31337, parse it as Dev, and then when
convert it to the wrong number (1337) which would make the transaction's
chain id not match the signer's
charisma98 added a commit to charisma98/foundry that referenced this issue Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

No branches or pull requests

3 participants