when i use the huffc to generate an artifict json, it's abi is like this : {
"constructor": null,
"functions": { ...} }
so when it comes to deploy , an error occured: "TypeError: abi.map is not a function"
I think the right abi is an array, it is like this : abi = [
"function decimals() view returns (string)",
"function balanceOf(address addr) view returns (uint)"
]
the foudry.toml is below:
// start
[profile.default]
solc_version = '0.8.20'
evm_version = 'shanghai'
auto_detect_solc = false
optimizer = true
optimizer_runs = 200 # Default amount
ffi = true
fuzz_runs = 1_000
remappings = [
"forge-std=lib/forge-std/src/",
"foundry-huff=lib/foundry-huff/src/",
]
// end
the commend which i use is below:
huffc addTwo.huff -a