diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2018-07-30 17:30:09 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-07-30 17:30:09 +0800 |
commit | d42ce0f2c1b52e26cce475e411d97165fb975577 (patch) | |
tree | 03043c37becf49145b23f4824f563e3443335698 /core | |
parent | 273c7a9dc4e8961e96e51bd8274436ff983a21ef (diff) | |
download | dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.gz dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.bz2 dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.lz dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.xz dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.zst dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.zip |
all: simplify switches (#17267)
* all: simplify switches
* silly mistake
Diffstat (limited to 'core')
-rw-r--r-- | core/blockchain_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/blockchain_test.go b/core/blockchain_test.go index 687209bfa..e452d6936 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -1146,8 +1146,7 @@ func TestEIP155Transition(t *testing.T) { return types.SignTx(types.NewTransaction(block.TxNonce(address), common.Address{}, new(big.Int), 21000, new(big.Int), nil), signer, key) } ) - switch i { - case 0: + if i == 0 { tx, err = basicTx(types.NewEIP155Signer(big.NewInt(2))) if err != nil { t.Fatal(err) |