Skip to content

Commit

Permalink
Add CREATE3 message support
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Apr 26, 2023
1 parent 3db7f9e commit ff7d5e5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ enum evmc_call_kind
The value param ignored. */
EVMC_CALLCODE = 2, /**< Request CALLCODE. */
EVMC_CREATE = 3, /**< Request CREATE. */
EVMC_CREATE2 = 4 /**< Request CREATE2. Valid since Constantinople.*/
EVMC_CREATE2 = 4, /**< Request CREATE2. Valid since Constantinople.*/
EVMC_CREATE3 = 5 /**< Request CREATE3. Valid since Prague.*/
};

/** The flags for ::evmc_message. */
Expand Down Expand Up @@ -187,6 +188,20 @@ struct evmc_message
* Defined as `c` in the Yellow Paper.
*/
evmc_address code_address;

/**
* The init code for creation message.
*
* Ignored unless kind is ::EVMC_CREATE3.
*/
const uint8_t* init_code;

/**
* The size of the init code for creation message.
*
* Ignored unless kind is ::EVMC_CREATE3.
*/
size_t init_code_size;
};


Expand Down

0 comments on commit ff7d5e5

Please sign in to comment.