aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block_manager_test.go
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/block_manager_test.go
parent22e2c3429bee515f69250dfdddc419a389e8ccd6 (diff)
downloadgo-tangerine-d8b5bbd48c8e989808058150137d9713d1936b18.tar.gz
go-tangerine-d8b5bbd48c8e989808058150137d9713d1936b18.tar.zst
go-tangerine-d8b5bbd48c8e989808058150137d9713d1936b18.zip
Added compile
Diffstat (limited to 'ethchain/block_manager_test.go')
-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})
}