foundry icon indicating copy to clipboard operation
foundry copied to clipboard

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

Open 0xzrf opened this issue 1 year ago • 4 comments

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

0xzrf avatar Jul 22 '24 07:07 0xzrf

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

zerosnacks avatar Aug 07 '24 18:08 zerosnacks

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

0xzrf avatar Aug 11 '24 15:08 0xzrf

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 avatar Aug 15 '24 19:08 block0xhash

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 contract address and the --rpc-url

block0xhash avatar Aug 15 '24 19:08 block0xhash

Tentatively marking as resolved, feel free to re-open with additional details if you are still experiencing issues with this.

What @block0xhash wrote, it could be that you are not passing all required arguments and it attempts to resolve an argument as an invalid ENS name. Order of arguments does matter.

zerosnacks avatar Sep 16 '24 11:09 zerosnacks