Skip to content

Commit

Permalink
Merge pull request #132 from ethereum/storagestore
Browse files Browse the repository at this point in the history
Rename EVMC_STORAGE_MODIFIED_DIRTY to EVMC_STORAGE_MODIFIED_AGAIN
  • Loading branch information
chfast authored Sep 5, 2018
2 parents d617e19 + 1c69579 commit 62ed4a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions bindings/go/evmc/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ const (
type StorageStatus int

const (
StorageUnchanged StorageStatus = C.EVMC_STORAGE_UNCHANGED
StorageModified StorageStatus = C.EVMC_STORAGE_MODIFIED
StorageAdded StorageStatus = C.EVMC_STORAGE_ADDED
StorageDeleted StorageStatus = C.EVMC_STORAGE_DELETED
StorageUnchanged StorageStatus = C.EVMC_STORAGE_UNCHANGED
StorageModified StorageStatus = C.EVMC_STORAGE_MODIFIED
StorageModifiedAgain StorageStatus = C.EVMC_STORAGE_MODIFIED_AGAIN
StorageAdded StorageStatus = C.EVMC_STORAGE_ADDED
StorageDeleted StorageStatus = C.EVMC_STORAGE_DELETED
)

func goAddress(in C.struct_evmc_address) common.Address {
Expand Down
12 changes: 6 additions & 6 deletions include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -439,19 +439,19 @@ enum evmc_storage_status
EVMC_STORAGE_MODIFIED = 1,

/**
* A new storage item has been added: 0 -> X.
* A storage item has been modified after being modified before: X -> Y -> Z.
*/
EVMC_STORAGE_ADDED = 2,
EVMC_STORAGE_MODIFIED_AGAIN = 2,

/**
* A storage item has been deleted: X -> 0.
* A new storage item has been added: 0 -> X.
*/
EVMC_STORAGE_DELETED = 3,
EVMC_STORAGE_ADDED = 3,

/**
* A storage item has been modified after being modified before: X -> Y -> Z.
* A storage item has been deleted: X -> 0.
*/
EVMC_STORAGE_MODIFIED_DIRTY = 4
EVMC_STORAGE_DELETED = 4
};


Expand Down

0 comments on commit 62ed4a1

Please sign in to comment.