foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.12k stars 1.68k forks source link

bug(`cast send`): failed to get resolver from the ENS registry: buffer overrun while deserializing #8491

Open krishhh16 opened 1 month ago

krishhh16 commented 1 month ago

Component

Cast

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

What version of Foundry are you on?

0.2.0

What command(s) is the bug in?

cast send

Operating System

Linux

Describe the bug

I was testing a smart contract in forgery, I tried running this command as cast send $PRIVATE_KEY "sendNumber(uint256)" 1

And I'm continuously getting this error

zerosnacks commented 1 month ago

Hi @krishhh16, would you mind running foundryup and re-running your example?

krishhh16 commented 1 month ago

Hi @krishhh16, would you mind running foundryup and re-running your example?

Pretty sure I did that. But still no luck, I've been on the latest version the entire time

block0xhash commented 1 month ago

Component

Cast

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

  • [x] Foundry
  • [x] Foundryup

What version of Foundry are you on?

0.2.0

What command(s) is the bug in?

cast send

Operating System

Linux

Describe the bug

I was testing a smart contract in forgery, I tried running this command as cast send $PRIVATE_KEY "sendNumber(uint256)" 1

And I'm continuously getting this error

block0xhash commented 1 month ago

You get this error when your command is wrong

if this is your full cast command then thats the problem

cast send $PRIVATE_KEY "sendNumber(uint256)" 1

you need to pass the contractaddress and the --rpc-url