Skip to main content

Questions tagged [cast]

Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data

5 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers

Foundry : cast storage command storage slot argument posing length issue

When I try to get the private variable stored at storage slot 0 of the contract storage using the cast storage command, cast storage <my-contract-address> 0 --rpc-url <my-rpc-url> I get ...
h4mster's user avatar
  • 11
0 votes
0 answers

I got an error when I make cast send command

When I try to make this command cast send --rpc-url "" --private-key 0x*****b5f312b946890bc3256199b2570dded16e18a8336eeef3cfae0f8a***** ...
miy33t's user avatar
  • 1
0 votes
2 answers

How two different functions name can have same function signature?

This is the below code cast sig "workMyDirefulOwner(uint256,uint256)" 0xa9059cbb ...
MD AZAD's user avatar
  • 60
0 votes
1 answer

Download smartcontract's bytecode

Is there a way to download a smartcontract's bytecode with foundry and inject this bytecode into a local Anvil blockchain (at a given address) ? Thanks
Bob5421's user avatar
  • 1,477
0 votes
0 answers

Transaction not found using `cast publish` of Foundry

I wrote this function in go-ethereum to return a raw transaction: func createTx(c *ethclient.Client) (rawTxnHex string) { from := common.HexToAddress("...
Ahmed Rami Berrahal's user avatar