Skip to content

Can't deploy contract with forge #2303

@open-junius

Description

@open-junius

Describe the bug

It is unstable for contract deployment with forge. sometimes it works, sometime it doesn't. the error message is like

2025-12-17T11:46:37.609742Z ERROR alloy_provider::blocks: failed to fetch block number=6056669 err=server returned an error response: error code -32603: Expect block number from id: BlockId::Number(6056669)
Deployer: 0x31D69a641078d84E2150e322B4eFCc915De7bc65
Deployed to: 0xF226FEb8634cEbF2edF5f7f25114E0E7AEb91638
Transaction hash: 0x5f9edf41ad62af3b6208dddb925e81ca88aec108af7745ffd0b45475e644ed75
(.venv) mati@malinka:~/devel/collateral-contracts $ ./deploy.sh 285 $H160 1000 60
[⠊] Compiling...
No files changed, compilation skipped
Error: server returned an error response: error code -32603: Create pending runtime api error: Failed to call runtime API, Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
WASM backtrace:
error while executing at wasm backtrace:
    0: 0x17af4 - node_subtensor_runtime.wasm!rust_begin_unwind
    1: 0x5b6f - node_subtensor_runtime.wasm!core::panicking::panic_fmt::h88be49f888cc9d01
    2: 0x4dae9e - node_subtensor_runtime.wasm!<(TupleElement0,TupleElement1,TupleElement2,TupleElement3,TupleElement4,TupleElement5,TupleElement6,TupleElement7,TupleElement8,TupleElement9,TupleElement10,TupleElement11,TupleElement12,TupleElement13,TupleElement14,TupleElement15,TupleElement16,TupleElement17,TupleElement18,TupleElement19,TupleElement20,TupleElement21,TupleElement22,TupleElement23,TupleElement24,TupleElement25,TupleElement26) as frame_support::traits::hooks::OnInitialize<BlockNumber>>::on_initialize::h48b093259ef26911
    3: 0x4b389f - node_subtensor_runtime.wasm!frame_executive::Executive<System,Block,Context,UnsignedValidator,AllPalletsWithSystem,COnRuntimeUpgrade>::initialize_block::hb0062a20091083b9
    4: 0x5dac81 - node_subtensor_runtime.wasm!Core_initialize_block

To Reproduce

deploy contract with forge

Expected behavior

deployment is successful.

Screenshots

No response

Environment

ubuntu

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions