-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huff contract deploy with (os error 2) #21
Comments
Hello. I was having this issue today. Use the forge arguments I provide below then run your command after you have followed the steps below. forge create --rpc-url https://goerli.infura.io/v3/123ykurinfuraapikey --private-key 123reallylongprivatekeyfromwallet lib/foundry-huff/src/HuffDeployer.sol:HuffDeployer ry-huff/src/HuffDeployer.sol:HuffDeployer [profile.compiler] then go back to the terminal and run your command forge script script/Deploy.s.sol:Deploy you will see this output. [⠊] Compiling... == Return == the contract has now deployed successfully but the error you see is explained as this"To fix this error, you need to add a license field to the package.json file of the foundry-huff library, with a valid value. You can use any OSI-approved license identifier from this list2 as the value for the license field. For example, if you want to use the MIT license, you can add this line to the package.json file: |
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?
[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)"
The text was updated successfully, but these errors were encountered: