diff options
author | Felix Lange <fjl@twurst.com> | 2015-04-18 00:20:32 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-04-19 06:07:09 +0800 |
commit | c453f1f37093445ba1d9eba5a075169ef0566c19 (patch) | |
tree | 9bb62306bc9d40434c8ec51e26b9f62114a502b2 /tests/transaction_test_util.go | |
parent | 235ed7ecb92527ce0029c2a6f5ace06707db9b28 (diff) | |
download | go-tangerine-c453f1f37093445ba1d9eba5a075169ef0566c19.tar.gz go-tangerine-c453f1f37093445ba1d9eba5a075169ef0566c19.tar.zst go-tangerine-c453f1f37093445ba1d9eba5a075169ef0566c19.zip |
tests: hopefully improve test conversion helpers
(cherry picked from commit 035a30acbefb5eeadc1fc8dbd567775d5688f8a9)
Diffstat (limited to 'tests/transaction_test_util.go')
-rw-r--r-- | tests/transaction_test_util.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/transaction_test_util.go b/tests/transaction_test_util.go index 567aba66f..d82946e20 100644 --- a/tests/transaction_test_util.go +++ b/tests/transaction_test_util.go @@ -127,15 +127,15 @@ func convertTestTypes(txTest TransactionTest) (sender, to common.Address, txInputData = mustConvertBytes(txTest.Transaction.Data) rlpBytes = mustConvertBytes(txTest.Rlp) - gasLimit = mustConvertBigInt(txTest.Transaction.GasLimit) - gasPrice = mustConvertBigInt(txTest.Transaction.GasPrice) - value = mustConvertBigInt(txTest.Transaction.Value) + gasLimit = mustConvertBigInt(txTest.Transaction.GasLimit, 16) + gasPrice = mustConvertBigInt(txTest.Transaction.GasPrice, 16) + value = mustConvertBigInt(txTest.Transaction.Value, 16) r = common.Bytes2Big(mustConvertBytes(txTest.Transaction.R)) s = common.Bytes2Big(mustConvertBytes(txTest.Transaction.S)) - nonce = mustConvertUint(txTest.Transaction.Nonce) - v = mustConvertUint(txTest.Transaction.V) + nonce = mustConvertUint(txTest.Transaction.Nonce, 16) + v = mustConvertUint(txTest.Transaction.V, 16) return sender, to, txInputData, rlpBytes, gasLimit, gasPrice, value, r, s, nonce, v, nil } |