aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/vm_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-21 21:47:55 +0800
committerobscuren <geffobscura@gmail.com>2014-03-21 21:47:55 +0800
commit2ea4c632d1673b762c1af11582364d9faa08c413 (patch)
treec9e87a5d79eb1bbeaee691a056a2e6974b6ba3f5 /ethchain/vm_test.go
parentfa1db8d2dcbc12fd9b343e6572c541d92fe7cb55 (diff)
downloaddexon-2ea4c632d1673b762c1af11582364d9faa08c413.tar
dexon-2ea4c632d1673b762c1af11582364d9faa08c413.tar.gz
dexon-2ea4c632d1673b762c1af11582364d9faa08c413.tar.bz2
dexon-2ea4c632d1673b762c1af11582364d9faa08c413.tar.lz
dexon-2ea4c632d1673b762c1af11582364d9faa08c413.tar.xz
dexon-2ea4c632d1673b762c1af11582364d9faa08c413.tar.zst
dexon-2ea4c632d1673b762c1af11582364d9faa08c413.zip
Closure return, arguments fixed. Added proper tests
Diffstat (limited to 'ethchain/vm_test.go')
-rw-r--r--ethchain/vm_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ethchain/vm_test.go b/ethchain/vm_test.go
index ce8c7a4de..16cbf51b7 100644
--- a/ethchain/vm_test.go
+++ b/ethchain/vm_test.go
@@ -126,7 +126,6 @@ func TestRun3(t *testing.T) {
"PUSH", "64",
"PUSH", "0",
- "LOG",
"RETURN",
})
tx := NewTransaction(ContractAddr, ethutil.Big("100000000000000000000000000000000000000000000000000"), script)
@@ -159,7 +158,7 @@ func TestRun3(t *testing.T) {
callerClosure := NewClosure(account, MakeContract(callerTx, state), state, big.NewInt(1000000000), new(big.Int))
vm := NewVm(state, RuntimeVars{
- origin: account.Address,
+ origin: account.Address(),
blockNumber: 1,
prevHash: ethutil.FromHex("5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"),
coinbase: ethutil.FromHex("2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"),