From 8726fc9a33eef1f2ed3c2035f39aef6389a09bd4 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 28 Aug 2018 19:48:26 +0100 Subject: [PATCH] Use nicer example EVM bytecode in examples/capi.c --- examples/capi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/capi.c b/examples/capi.c index 43eddac..55383bc 100644 --- a/examples/capi.c +++ b/examples/capi.c @@ -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!";