Merge pull request #132 from ethereum/storagestore

Rename EVMC_STORAGE_MODIFIED_DIRTY to EVMC_STORAGE_MODIFIED_AGAIN
This commit is contained in:
Paweł Bylica 2018-09-05 14:18:00 +02:00 committed by GitHub
commit 62ed4a14d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 11 deletions

View File

@ -39,10 +39,11 @@ const (
type StorageStatus int type StorageStatus int
const ( const (
StorageUnchanged StorageStatus = C.EVMC_STORAGE_UNCHANGED StorageUnchanged StorageStatus = C.EVMC_STORAGE_UNCHANGED
StorageModified StorageStatus = C.EVMC_STORAGE_MODIFIED StorageModified StorageStatus = C.EVMC_STORAGE_MODIFIED
StorageAdded StorageStatus = C.EVMC_STORAGE_ADDED StorageModifiedAgain StorageStatus = C.EVMC_STORAGE_MODIFIED_AGAIN
StorageDeleted StorageStatus = C.EVMC_STORAGE_DELETED StorageAdded StorageStatus = C.EVMC_STORAGE_ADDED
StorageDeleted StorageStatus = C.EVMC_STORAGE_DELETED
) )
func goAddress(in C.struct_evmc_address) common.Address { func goAddress(in C.struct_evmc_address) common.Address {

View File

@ -438,20 +438,20 @@ enum evmc_storage_status
*/ */
EVMC_STORAGE_MODIFIED = 1, EVMC_STORAGE_MODIFIED = 1,
/**
* A storage item has been modified after being modified before: X -> Y -> Z.
*/
EVMC_STORAGE_MODIFIED_AGAIN = 2,
/** /**
* A new storage item has been added: 0 -> X. * A new storage item has been added: 0 -> X.
*/ */
EVMC_STORAGE_ADDED = 2, EVMC_STORAGE_ADDED = 3,
/** /**
* A storage item has been deleted: X -> 0. * A storage item has been deleted: X -> 0.
*/ */
EVMC_STORAGE_DELETED = 3, EVMC_STORAGE_DELETED = 4
/**
* A storage item has been modified after being modified before: X -> Y -> Z.
*/
EVMC_STORAGE_MODIFIED_DIRTY = 4
}; };