aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-24 19:13:22 +0800
committerobscuren <geffobscura@gmail.com>2014-02-24 19:13:22 +0800
commitd8b5bbd48c8e989808058150137d9713d1936b18 (patch)
treeed81ad1c23e6406578f6313e351524e01e8fd7cd /ethchain
parent22e2c3429bee515f69250dfdddc419a389e8ccd6 (diff)
downloaddexon-d8b5bbd48c8e989808058150137d9713d1936b18.tar.gz
dexon-d8b5bbd48c8e989808058150137d9713d1936b18.tar.zst
dexon-d8b5bbd48c8e989808058150137d9713d1936b18.zip
Added compile
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/block_manager_test.go3
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})
}