aboutsummaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
authorJM <jm@dexon.org>2019-01-31 15:12:57 +0800
committerJhih-Ming Huang <jm.huang@cobinhood.com>2019-03-26 17:48:21 +0800
commit1ea57eed7e9e37b40d27b11fe316cfe3569fade6 (patch)
tree9f5b919f6c75e6dd713902ecc96a0c845679649a /light
parent1810c3af03d3da56d42f93c4521e33332156dcb6 (diff)
downloaddexon-1ea57eed7e9e37b40d27b11fe316cfe3569fade6.tar
dexon-1ea57eed7e9e37b40d27b11fe316cfe3569fade6.tar.gz
dexon-1ea57eed7e9e37b40d27b11fe316cfe3569fade6.tar.bz2
dexon-1ea57eed7e9e37b40d27b11fe316cfe3569fade6.tar.lz
dexon-1ea57eed7e9e37b40d27b11fe316cfe3569fade6.tar.xz
dexon-1ea57eed7e9e37b40d27b11fe316cfe3569fade6.tar.zst
dexon-1ea57eed7e9e37b40d27b11fe316cfe3569fade6.zip
core: vm: vm interface (#164)
Diffstat (limited to 'light')
-rw-r--r--light/odr_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/light/odr_test.go b/light/odr_test.go
index 08d4bce32..267d1a346 100644
--- a/light/odr_test.go
+++ b/light/odr_test.go
@@ -32,6 +32,7 @@ import (
"github.com/dexon-foundation/dexon/core/state"
"github.com/dexon-foundation/dexon/core/types"
vm "github.com/dexon-foundation/dexon/core/vm/evm"
+ "github.com/dexon-foundation/dexon/core/vm/tools"
"github.com/dexon-foundation/dexon/crypto"
"github.com/dexon-foundation/dexon/ethdb"
"github.com/dexon-foundation/dexon/params"
@@ -222,6 +223,7 @@ func testChainGen(i int, block *core.BlockGen) {
nonce := block.TxNonce(acc1Addr)
tx2, _ := types.SignTx(types.NewTransaction(nonce, acc2Addr, big.NewInt(1000), params.TxGas, nil, nil), signer, acc1Key)
nonce++
+ testContractCode = tools.PatchBinary(testContractCode)
tx3, _ := types.SignTx(types.NewContractCreation(nonce, big.NewInt(0), 1000000, big.NewInt(0), testContractCode), signer, acc1Key)
testContractAddr = crypto.CreateAddress(acc1Addr, nonce)
block.AddTx(tx1)