From c9f8d9de572630824296d10c4bcb9b99f4b6a2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 20 Aug 2018 12:03:16 +0200 Subject: [PATCH] go: Type constants --- bindings/go/evmc/evmc.go | 12 ++++++------ bindings/go/evmc/host.go | 18 +++++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/bindings/go/evmc/evmc.go b/bindings/go/evmc/evmc.go index b8f36dca4..279f51a1b 100644 --- a/bindings/go/evmc/evmc.go +++ b/bindings/go/evmc/evmc.go @@ -131,12 +131,12 @@ const ( type Revision int32 const ( - Frontier = C.EVMC_FRONTIER - Homestead = C.EVMC_HOMESTEAD - TangerineWhistle = C.EVMC_TANGERINE_WHISTLE - SpuriousDragon = C.EVMC_SPURIOUS_DRAGON - Byzantium = C.EVMC_BYZANTIUM - Constantinople = C.EVMC_CONSTANTINOPLE + Frontier Revision = C.EVMC_FRONTIER + Homestead Revision = C.EVMC_HOMESTEAD + TangerineWhistle Revision = C.EVMC_TANGERINE_WHISTLE + SpuriousDragon Revision = C.EVMC_SPURIOUS_DRAGON + Byzantium Revision = C.EVMC_BYZANTIUM + Constantinople Revision = C.EVMC_CONSTANTINOPLE ) type Instance struct { diff --git a/bindings/go/evmc/host.go b/bindings/go/evmc/host.go index f008b0142..7e4ebffc6 100644 --- a/bindings/go/evmc/host.go +++ b/bindings/go/evmc/host.go @@ -29,20 +29,20 @@ import ( type CallKind int const ( - Call = C.EVMC_CALL - DelegateCall = C.EVMC_DELEGATECALL - CallCode = C.EVMC_CALLCODE - Create = C.EVMC_CREATE - Create2 = C.EVMC_CREATE2 + Call CallKind = C.EVMC_CALL + DelegateCall CallKind = C.EVMC_DELEGATECALL + CallCode CallKind = C.EVMC_CALLCODE + Create CallKind = C.EVMC_CREATE + Create2 CallKind = C.EVMC_CREATE2 ) type StorageStatus int const ( - StorageUnchanged = C.EVMC_STORAGE_UNCHANGED - StorageModified = C.EVMC_STORAGE_MODIFIED - StorageAdded = C.EVMC_STORAGE_ADDED - StorageDeleted = C.EVMC_STORAGE_DELETED + StorageUnchanged StorageStatus = C.EVMC_STORAGE_UNCHANGED + StorageModified StorageStatus = C.EVMC_STORAGE_MODIFIED + StorageAdded StorageStatus = C.EVMC_STORAGE_ADDED + StorageDeleted StorageStatus = C.EVMC_STORAGE_DELETED ) func goAddress(in C.struct_evmc_address) common.Address {