mirror of https://github.com/status-im/op-geth.git
Added compile
This commit is contained in:
parent
22e2c3429b
commit
d8b5bbd48c
|
@ -17,12 +17,13 @@ func TestVm(t *testing.T) {
|
||||||
bm := NewBlockManager(nil)
|
bm := NewBlockManager(nil)
|
||||||
|
|
||||||
block := bm.bc.genesisBlock
|
block := bm.bc.genesisBlock
|
||||||
ctrct := NewTransaction(ContractAddr, big.NewInt(200000000), []string{
|
script := Compile([]string{
|
||||||
"PUSH",
|
"PUSH",
|
||||||
"1",
|
"1",
|
||||||
"PUSH",
|
"PUSH",
|
||||||
"2",
|
"2",
|
||||||
"STOP",
|
"STOP",
|
||||||
})
|
})
|
||||||
|
ctrct := NewTransaction(ContractAddr, big.NewInt(200000000), script)
|
||||||
bm.ApplyTransactions(block, []*Transaction{ctrct})
|
bm.ApplyTransactions(block, []*Transaction{ctrct})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue