Trim REPL
1 byte = 8 bits = 2 hex chars
1 evm word = 32 bytes
Trim
Bare Assembly
(SUB CODESIZE #runtime) DUP1 (CODECOPY 0x00 #runtime _) (RETURN 0x00 _) #runtime (CALLDATACOPY 0x1c 0x00 0x04) (MLOAD 0x00) ; copy function selector onto the stack (EQ (abi/fn-selector "greet()") DUP1) (JUMPI #greet _) REVERT ; No matching function selector #greet JUMPDEST (MSTORE 0x00 "Hello, world!") (RETURN 0x00 0x20)
No compile errors.
Scratch Converter
Decompile EVM Bytecode
Hex to UTF-8
UTF-8 to Hex
Function Selector
setGreeting(string)
Hex Padder
Pad
bytes