mirror of
https://github.com/status-im/evmc.git
synced 2025-02-23 08:28:15 +00:00
examples: fill out some values in tx_context
This commit is contained in:
parent
ca7d5d91aa
commit
4973da1802
@ -45,6 +45,9 @@ int main(int argc, char* argv[])
|
||||
const int64_t gas = 200000;
|
||||
struct evmc_tx_context tx_context;
|
||||
memset(&tx_context, 0, sizeof(tx_context));
|
||||
tx_context.block_number = 42;
|
||||
tx_context.block_timestamp = 66;
|
||||
tx_context.block_gas_limit = gas * 2;
|
||||
struct evmc_context* ctx = example_host_create_context(tx_context);
|
||||
struct evmc_message msg;
|
||||
msg.sender = addr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user