Skip to content

Huff contract deploy with (os error 2) #21

@paulatsydney

Description

@paulatsydney

Hi @refcell ,

When I use below forge script to deploy the contract, error occurs with (os error 2). I found you replied in other's github repo that this should be fixed by upgrading to huff-rs. But how can I deploy the huff contract here, is it possible to still deploy it with foundry-huff?

forge script script/Deploy.s.sol:Deploy 

[2115877] Deploy::run()
├─ [1897993] HuffDeployer::config() [delegatecall]
│ ├─ [1863762] → new HuffConfig@0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f
│ │ └─ ← 9309 bytes of code
│ └─ ← 0x0000000000000000000000005615deb798bb3e4dfa0139dfa1b3d433cc23b72f
├─ [131299] HuffConfig::with_addr_constant(USER, 0x00000000000000000000000000000000bEefbabe)
│ └─ ← HuffConfig: [0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f]
├─ [61672] HuffConfig::deploy(Sandwich)
│ ├─ [0] VM::ffi([./lib/foundry-huff/scripts/binary_check.sh])
│ │ └─ ← 0x01
│ ├─ [0] VM::ffi([./lib/foundry-huff/scripts/rand_bytes.sh])
│ │ └─ ← 0x24936a96e60a720cb0f2811f4dee97ea
│ ├─ [0] VM::ffi([./lib/foundry-huff/scripts/file_writer.sh, src/__TEMP__tfbqbqftksfopwpjdurgtwfyuymqdfloSandwich.huff,
])
│ │ └─ ← 0x
│ ├─ [0] VM::ffi([./lib/foundry-huff/scripts/read_and_append.sh, src/__TEMP__tfbqbqftksfopwpjdurgtwfyuymqdfloSandwich.huff, src/Sandwich.huff])
│ │ └─ ← 0x
│ ├─ [0] VM::ffi([huffc, src/__TEMP__tfbqbqftksfopwpjdurgtwfyuymqdfloSandwich.huff, -b, -c, USER=0x00000000000000000000000000000000beefbabe])
│ │ └─ ← "Failed to execute command: No such file or directory (os error 2)"
│ └─ ← "Failed to execute command: No such file or directory (os error 2)"
└─ ← "Failed to execute command: No such file or directory (os error 2)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions