Hack Night Ethereum Melbourne with Huff!
- Install Forge
curl -L https://foundry.paradigm.xyz | bash
foundryup
- Install Huff
curl -L get.huff.sh | bash
huffup
- Run the tests (need FFI support to work in Huff)
forge test --ffi
Add in support to store arrays and mappings into SimpleStorage.huff
to win a 0.05 ETH bounty! (Limited to 1 person)
interface ISimpleStorage {
function setString(string memory) external;
function getString(string memory) external;
function setArray(uint256[] memory) external;
function getArray() external returns (uint256[] memory);
function setMap(bytes32 key, bytes32 value) external;
function getMap(bytes32 key) external returns (bytes32);
}
Test the runtime bytecode in evm.codes
To get the runtime bytecode:
huffc src/myHuffCode.huff -b