diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-24 19:13:22 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-24 19:13:22 +0800 |
commit | d8b5bbd48c8e989808058150137d9713d1936b18 (patch) | |
tree | ed81ad1c23e6406578f6313e351524e01e8fd7cd /ethchain/block_manager_test.go | |
parent | 22e2c3429bee515f69250dfdddc419a389e8ccd6 (diff) | |
download | dexon-d8b5bbd48c8e989808058150137d9713d1936b18.tar dexon-d8b5bbd48c8e989808058150137d9713d1936b18.tar.gz dexon-d8b5bbd48c8e989808058150137d9713d1936b18.tar.bz2 dexon-d8b5bbd48c8e989808058150137d9713d1936b18.tar.lz dexon-d8b5bbd48c8e989808058150137d9713d1936b18.tar.xz dexon-d8b5bbd48c8e989808058150137d9713d1936b18.tar.zst dexon-d8b5bbd48c8e989808058150137d9713d1936b18.zip |
Added compile
Diffstat (limited to 'ethchain/block_manager_test.go')
-rw-r--r-- | ethchain/block_manager_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethchain/block_manager_test.go b/ethchain/block_manager_test.go index 853d459d8..df3e56e5e 100644 --- a/ethchain/block_manager_test.go +++ b/ethchain/block_manager_test.go @@ -17,12 +17,13 @@ func TestVm(t *testing.T) { bm := NewBlockManager(nil) block := bm.bc.genesisBlock - ctrct := NewTransaction(ContractAddr, big.NewInt(200000000), []string{ + script := Compile([]string{ "PUSH", "1", "PUSH", "2", "STOP", }) + ctrct := NewTransaction(ContractAddr, big.NewInt(200000000), script) bm.ApplyTransactions(block, []*Transaction{ctrct}) } |