diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-24 19:44:29 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-24 19:44:29 +0800 |
commit | 88a9c62fccd16a782e7d7221daf6b6f207c22097 (patch) | |
tree | 7cc5fd865b03d90e206c070ebfed780bf893361b /ethchain/block_manager_test.go | |
parent | b29c1eecd104de58611b9a17a68b48321fd40e87 (diff) | |
download | go-tangerine-88a9c62fccd16a782e7d7221daf6b6f207c22097.tar go-tangerine-88a9c62fccd16a782e7d7221daf6b6f207c22097.tar.gz go-tangerine-88a9c62fccd16a782e7d7221daf6b6f207c22097.tar.bz2 go-tangerine-88a9c62fccd16a782e7d7221daf6b6f207c22097.tar.lz go-tangerine-88a9c62fccd16a782e7d7221daf6b6f207c22097.tar.xz go-tangerine-88a9c62fccd16a782e7d7221daf6b6f207c22097.tar.zst go-tangerine-88a9c62fccd16a782e7d7221daf6b6f207c22097.zip |
Proper tests
Diffstat (limited to 'ethchain/block_manager_test.go')
-rw-r--r-- | ethchain/block_manager_test.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ethchain/block_manager_test.go b/ethchain/block_manager_test.go index df3e56e5e..ec4fbe8c5 100644 --- a/ethchain/block_manager_test.go +++ b/ethchain/block_manager_test.go @@ -22,8 +22,12 @@ func TestVm(t *testing.T) { "1", "PUSH", "2", - "STOP", }) - ctrct := NewTransaction(ContractAddr, big.NewInt(200000000), script) - bm.ApplyTransactions(block, []*Transaction{ctrct}) + tx := NewTransaction(ContractAddr, big.NewInt(200000000), script) + addr := tx.Hash()[12:] + bm.ApplyTransactions(block, []*Transaction{tx}) + + tx2 := NewTransaction(addr, big.NewInt(1e17), nil) + tx2.Sign([]byte("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) + bm.ApplyTransactions(block, []*Transaction{tx2}) } |