Commit d8b5bbd4 authored by obscuren's avatar obscuren

Added compile

parent 22e2c342
......@@ -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})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment