Skip to content

Commit

Permalink
go: Add missing Shanghai revision constant
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Jun 30, 2021
1 parent a99ec70 commit c2961c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bindings/go/evmc/evmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ const (
Istanbul Revision = C.EVMC_ISTANBUL
Berlin Revision = C.EVMC_BERLIN
London Revision = C.EVMC_LONDON
Shanghai Revision = C.EVMC_SHANGHAI
MaxRevision Revision = C.EVMC_MAX_REVISION
LatestStableRevision Revision = C.EVMC_LATEST_STABLE_REVISION
)
Expand Down
2 changes: 1 addition & 1 deletion bindings/go/evmc/evmc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestExecuteEmptyCode(t *testing.T) {
}

func TestRevision(t *testing.T) {
if MaxRevision != London {
if MaxRevision != Shanghai {
t.Errorf("missing constant for revision %d", MaxRevision)
}
if LatestStableRevision != London {
Expand Down

0 comments on commit c2961c4

Please sign in to comment.