Skip to content

Commit

Permalink
Fix TX Data (0xPolygonHermez#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniRamirezM authored Sep 6, 2022
1 parent f8abdc7 commit dc7c76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions state/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ func TestExecutorTxHashAndRLP(t *testing.T) {
s, ok := new(big.Int).SetString(testCase.S, 0)
require.Equal(t, true, ok)

value := new(big.Int)
var value *big.Int

if testCase.Value != "0x" {
value, ok = new(big.Int).SetString(testCase.Value, 0)
Expand All @@ -1246,7 +1246,7 @@ func TestExecutorTxHashAndRLP(t *testing.T) {
Value: value,
Gas: gasLimit.Uint64(),
GasPrice: gasPrice,
Data: common.Hex2Bytes(testCase.Data),
Data: common.Hex2Bytes(strings.TrimPrefix(testCase.Data, "0x")),
V: v,
R: r,
S: s,
Expand Down

0 comments on commit dc7c76d

Please sign in to comment.