aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-01-05 19:59:17 +0800
committerFelix Lange <fjl@twurst.com>2017-01-05 19:59:17 +0800
commite171bf74f8b6d15c2ae51e259d703ee5b729a298 (patch)
treeb7924c1c57d69d433cb8c6645d0b2e57743daeee /core/chain_makers_test.go
parentbbc4ea4ae8e8a962deae3d5693d9d4a9376eab88 (diff)
downloaddexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.gz
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.bz2
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.lz
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.xz
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.zst
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.zip
core/types: remove redundant SignECDSA wrappers, rename to SignTx
Diffstat (limited to 'core/chain_makers_test.go')
-rw-r--r--core/chain_makers_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go
index 487cd6e18..942f4ace2 100644
--- a/core/chain_makers_test.go
+++ b/core/chain_makers_test.go
@@ -55,13 +55,13 @@ func ExampleGenerateChain() {
switch i {
case 0:
// In block 1, addr1 sends addr2 some ether.
- tx, _ := types.NewTransaction(gen.TxNonce(addr1), addr2, big.NewInt(10000), params.TxGas, nil, nil).SignECDSA(signer, key1)
+ tx, _ := types.SignTx(types.NewTransaction(gen.TxNonce(addr1), addr2, big.NewInt(10000), params.TxGas, nil, nil), signer, key1)
gen.AddTx(tx)
case 1:
// In block 2, addr1 sends some more ether to addr2.
// addr2 passes it on to addr3.
- tx1, _ := types.NewTransaction(gen.TxNonce(addr1), addr2, big.NewInt(1000), params.TxGas, nil, nil).SignECDSA(signer, key1)
- tx2, _ := types.NewTransaction(gen.TxNonce(addr2), addr3, big.NewInt(1000), params.TxGas, nil, nil).SignECDSA(signer, key2)
+ tx1, _ := types.SignTx(types.NewTransaction(gen.TxNonce(addr1), addr2, big.NewInt(1000), params.TxGas, nil, nil), signer, key1)
+ tx2, _ := types.SignTx(types.NewTransaction(gen.TxNonce(addr2), addr3, big.NewInt(1000), params.TxGas, nil, nil), signer, key2)
gen.AddTx(tx1)
gen.AddTx(tx2)
case 2: