Added compile

This commit is contained in:
obscuren 2014-02-24 12:13:22 +01:00
parent 22e2c3429b
commit d8b5bbd48c
1 changed files with 2 additions and 1 deletions

View File

@ -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})
}