Skip to content

Foundry: forge script commands transaction Error #1

@jameslego-ctrl

Description

@jameslego-ctrl

For Foundry: An issue is discovered when running the scripts , can't fix after multiple attempts.

$forge script script/Counter.s.sol:CounterScript --broadcast --legacy --rpc-url $RPC_URL --private-key $PRIVATE_KEY
[⠊] Compiling...
No files changed, compilation skipped
Script ran successfully.

## Setting up 1 EVM.

==========================

Chain 1043

Estimated gas price: 2.000000007 gwei

Estimated total gas used for script: 162857

Estimated amount required: 0.000325714001139999 ETH

==========================

##### 1043
❌  [Failed] Hash: 0x7a53042a120c55ebd316f4de59d91a9a672ced65e39b7dd9483da30b2ca242e4
Contract Address: 0x23Dbc4643E66653896c78177782E1D7ea629F1AE
Block: 1015379
Paid: 0.000325714001139999 ETH (162857 gas * 2.000000007 gwei)


Transactions saved to: /Users/jameslego/Developer/foundry-f25/test/broadcast/Counter.s.sol/1043/run-latest.json

Sensitive values saved to: /Users/jameslego/Developer/foundry-f25/test/cache/Counter.s.sol/1043/run-latest.json

Error: Transaction Failure: 0x7a53042a120c55ebd316f4de59d91a9a672ced65e39b7dd9483da30b2ca242e4

The codebase have no issues, multiple checked ✅, The contract is being created with the address ,when viewed in the explorer the contract is there but without any functionality , please provide better docs for developer . please help asap , i need to participate in the upcoming hackathon sponsored by BlockDag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions