EVM-C: mark empty args as n/a in query/update

This commit is contained in:
Alex Beregszaszi 2016-09-01 03:08:24 +01:00
parent 800e8f531f
commit 4fbe3a05d9
1 changed files with 15 additions and 14 deletions

View File

@ -151,16 +151,16 @@ union evm_variant {
///
/// ## Types of queries
/// Key | Arg | Expected result
/// ----------------------| -------------------- | ----------------------------
/// ::EVM_GAS_PRICE | | evm_variant::uint256be
/// ::EVM_ADDRESS | | evm_variant::address
/// ::EVM_CALLER | | evm_variant::address
/// ::EVM_ORIGIN | | evm_variant::address
/// ::EVM_COINBASE | | evm_variant::address
/// ::EVM_DIFFICULTY | | evm_variant::uint256be
/// ::EVM_GAS_LIMIT | | evm_variant::uint256be
/// ::EVM_NUMBER | | evm_variant::int64
/// ::EVM_TIMESTAMP | | evm_variant::int64
/// ----------------------| ---------------------- | ----------------------------
/// ::EVM_GAS_PRICE | n/a | evm_variant::uint256be
/// ::EVM_ADDRESS | n/a | evm_variant::address
/// ::EVM_CALLER | n/a | evm_variant::address
/// ::EVM_ORIGIN | n/a | evm_variant::address
/// ::EVM_COINBASE | n/a | evm_variant::address
/// ::EVM_DIFFICULTY | n/a | evm_variant::uint256be
/// ::EVM_GAS_LIMIT | n/a | evm_variant::uint256be
/// ::EVM_NUMBER | n/a | evm_variant::int64
/// ::EVM_TIMESTAMP | n/a | evm_variant::int64
/// ::EVM_CODE_BY_ADDRESS | evm_variant::address | evm_variant::data
/// ::EVM_BALANCE | evm_variant::address | evm_variant::uint256be
/// ::EVM_BLOCKHASH | evm_variant::int64 | evm_variant::hash256be
@ -202,6 +202,7 @@ enum evm_update_key {
///
/// - ::EVM_SELFDESTRUCT
/// @param arg1 evm_variant::address The beneficiary address.
/// @param arg2 n/a
typedef void (*evm_update_fn)(struct evm_env* env,
enum evm_update_key key,
union evm_variant arg1,