Skip to content

Commit

Permalink
Merge pull request ethereum#158 from ethereum/storage
Browse files Browse the repository at this point in the history
Clarify requirements for get/set storage methods
  • Loading branch information
chfast authored Oct 5, 2018
2 parents adbe01c + b9f30a1 commit edb79f6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ typedef bool (*evmc_account_exists_fn)(struct evmc_context* context, const evmc_
/**
* Get storage callback function.
*
* This callback function is used by a VM to query the given contract storage entry.
* This callback function is used by a VM to query the given account storage entry.
*
* @param context The Host execution context.
* @param address The address of the account.
Expand Down Expand Up @@ -467,10 +467,13 @@ enum evmc_storage_status
/**
* Set storage callback function.
*
* This callback function is used by an EVM to update the given contract storage entry.
* This callback function is used by a VM to update the given account storage entry.
* The VM MUST make sure that the account exists. This requirement is only a formality because
* VM implementations only modify storage of the account of the current execution context
* (i.e. referenced by evmc_message::destination).
*
* @param context The pointer to the Host execution context.
* @param address The address of the contract.
* @param address The address of the account.
* @param key The index of the storage entry.
* @param value The value to be stored.
* @return The effect on the storage item.
Expand Down

0 comments on commit edb79f6

Please sign in to comment.