aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/bind/bind_test.go
diff options
context:
space:
mode:
authorJM <jm@dexon.org>2019-01-31 15:12:57 +0800
committerJhih-Ming Huang <jm.huang@cobinhood.com>2019-04-11 10:39:57 +0800
commit61c57167d691064864bed88928b0cfbeb4da874c (patch)
tree5f090be2d01c38465b8561ef34be010d8bb89650 /accounts/abi/bind/bind_test.go
parent034d4756e7c95af12f88f89fb8bfa72bfa319e2d (diff)
downloaddexon-61c57167d691064864bed88928b0cfbeb4da874c.tar
dexon-61c57167d691064864bed88928b0cfbeb4da874c.tar.gz
dexon-61c57167d691064864bed88928b0cfbeb4da874c.tar.bz2
dexon-61c57167d691064864bed88928b0cfbeb4da874c.tar.lz
dexon-61c57167d691064864bed88928b0cfbeb4da874c.tar.xz
dexon-61c57167d691064864bed88928b0cfbeb4da874c.tar.zst
dexon-61c57167d691064864bed88928b0cfbeb4da874c.zip
core: vm: vm interface (#164)
Diffstat (limited to 'accounts/abi/bind/bind_test.go')
-rw-r--r--accounts/abi/bind/bind_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/accounts/abi/bind/bind_test.go b/accounts/abi/bind/bind_test.go
index a197bb638..d7a1d76c1 100644
--- a/accounts/abi/bind/bind_test.go
+++ b/accounts/abi/bind/bind_test.go
@@ -27,6 +27,7 @@ import (
"testing"
"github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/core/vm/tools"
)
var bindTests = []struct {
@@ -945,6 +946,7 @@ func TestBindings(t *testing.T) {
// Generate the test suite for all the contracts
for i, tt := range bindTests {
// Generate the binding and create a Go source file in the workspace
+ tt.bytecode = tools.Patch(tt.bytecode)
bind, err := Bind([]string{tt.name}, []string{tt.abi}, []string{tt.bytecode}, "bindtest", LangGo)
if err != nil {
t.Fatalf("test %d: failed to generate binding: %v", i, err)