mirror of
https://github.com/status-im/evmc.git
synced 2025-02-22 16:08:22 +00:00
Use nicer example EVM bytecode in examples/capi.c
This commit is contained in:
parent
3403282827
commit
8726fc9a33
@ -170,7 +170,8 @@ int main()
|
||||
if (!evmc_is_abi_compatible(vm))
|
||||
return 1;
|
||||
|
||||
const uint8_t code[] = "Place some EVM bytecode here";
|
||||
// EVM bytecode goes here. This is one of the examples examplevm.c
|
||||
const uint8_t code[] = "\x30\x60\x00\x52\x59\x60\x00\xf3";
|
||||
const size_t code_size = sizeof(code);
|
||||
const struct evmc_uint256be code_hash = {.bytes = {1, 2, 3}};
|
||||
const uint8_t input[] = "Hello World!";
|
||||
|
Loading…
x
Reference in New Issue
Block a user