aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-26 07:54:45 +0800
committerobscuren <geffobscura@gmail.com>2014-04-26 07:54:45 +0800
commitd3a159ad3d6842ffb137fc1df48a54703345faa4 (patch)
tree199844db02639639b554ad91e9ca8dce70aa87a0 /ethchain
parent0f93da400ab7fd238eb7286f14c229d780f73636 (diff)
downloadgo-tangerine-d3a159ad3d6842ffb137fc1df48a54703345faa4.tar
go-tangerine-d3a159ad3d6842ffb137fc1df48a54703345faa4.tar.gz
go-tangerine-d3a159ad3d6842ffb137fc1df48a54703345faa4.tar.bz2
go-tangerine-d3a159ad3d6842ffb137fc1df48a54703345faa4.tar.lz
go-tangerine-d3a159ad3d6842ffb137fc1df48a54703345faa4.tar.xz
go-tangerine-d3a159ad3d6842ffb137fc1df48a54703345faa4.tar.zst
go-tangerine-d3a159ad3d6842ffb137fc1df48a54703345faa4.zip
Fixed tests
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/vm_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethchain/vm_test.go b/ethchain/vm_test.go
index cca9b876a..75a4f5afb 100644
--- a/ethchain/vm_test.go
+++ b/ethchain/vm_test.go
@@ -91,7 +91,7 @@ func TestRun4(t *testing.T) {
Exit()
`), false)
script := ethutil.Assemble(asm...)
- tx := NewContractCreationTx(ethutil.Big("0"), ethutil.Big("1000"), script, nil)
+ tx := NewContractCreationTx(ethutil.Big("0"), ethutil.Big("1000"), ethutil.Big("100"), script, nil)
addr := tx.Hash()[12:]
contract := MakeContract(tx, state)
state.UpdateStateObject(contract)
@@ -133,7 +133,7 @@ func TestRun4(t *testing.T) {
fmt.Println(asm)
callerScript := ethutil.Assemble(asm...)
- callerTx := NewContractCreationTx(ethutil.Big("0"), ethutil.Big("1000"), callerScript, nil)
+ callerTx := NewContractCreationTx(ethutil.Big("0"), ethutil.Big("1000"), ethutil.Big("100"), callerScript, nil)
// Contract addr as test address
gas := big.NewInt(1000)
@@ -148,7 +148,7 @@ func TestRun4(t *testing.T) {
fmt.Println("account.Amount =", account.Amount)
callerClosure := NewClosure(account, c, c.script, state, gas, gasPrice, big.NewInt(0))
- vm := NewVm(state, RuntimeVars{
+ vm := NewVm(state, nil, RuntimeVars{
Origin: account.Address(),
BlockNumber: 1,
PrevHash: ethutil.FromHex("5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"),