aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/vm_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-10 00:27:54 +0800
committerobscuren <geffobscura@gmail.com>2014-04-10 00:27:54 +0800
commite09f0a5f2c1e1b46226656dbac9a4ae10e0dcd14 (patch)
tree7b1ce2f5cd83e3a345cf26230afd41e48110e015 /ethchain/vm_test.go
parent4f2e9c2640eaa962d085db329221bfd6f1a1799e (diff)
downloadgo-tangerine-e09f0a5f2c1e1b46226656dbac9a4ae10e0dcd14.tar
go-tangerine-e09f0a5f2c1e1b46226656dbac9a4ae10e0dcd14.tar.gz
go-tangerine-e09f0a5f2c1e1b46226656dbac9a4ae10e0dcd14.tar.bz2
go-tangerine-e09f0a5f2c1e1b46226656dbac9a4ae10e0dcd14.tar.lz
go-tangerine-e09f0a5f2c1e1b46226656dbac9a4ae10e0dcd14.tar.xz
go-tangerine-e09f0a5f2c1e1b46226656dbac9a4ae10e0dcd14.tar.zst
go-tangerine-e09f0a5f2c1e1b46226656dbac9a4ae10e0dcd14.zip
Split code for contracts
Diffstat (limited to 'ethchain/vm_test.go')
-rw-r--r--ethchain/vm_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethchain/vm_test.go b/ethchain/vm_test.go
index 85ec4c693..745005b09 100644
--- a/ethchain/vm_test.go
+++ b/ethchain/vm_test.go
@@ -112,7 +112,8 @@ func TestRun4(t *testing.T) {
// Contract addr as test address
account := NewAccount(ContractAddr, big.NewInt(10000000))
- callerClosure := NewClosure(account, MakeContract(callerTx, state), state, big.NewInt(1000000000), new(big.Int))
+ c := MakeContract(callerTx, state)
+ callerClosure := NewClosure(account, c, c.script, state, big.NewInt(1000000000), new(big.Int))
vm := NewVm(state, RuntimeVars{
origin: account.Address(),