diff --git a/accounts/abi/bind/backends/simulated_test.go b/accounts/abi/bind/backends/simulated_test.go index 9e782f41bd15b508ea8d132ded2d7b4447c32bea..01683e412a0e1a7fd7d3b59a7065d44eb2c5a76c 100644 --- a/accounts/abi/bind/backends/simulated_test.go +++ b/accounts/abi/bind/backends/simulated_test.go @@ -162,7 +162,9 @@ func TestNewSimulatedBackend_AdjustTimeFail(t *testing.T) { testAddr := crypto.PubkeyToAddress(testKey.PublicKey) sim := simTestBackend(testAddr) // Create tx and send - tx := types.NewTransaction(0, testAddr, big.NewInt(1000), params.TxGas, big.NewInt(1), nil) + amount, _ := uint256.FromBig(big.NewInt(1000)) + gasPrice, _ := uint256.FromBig(big.NewInt(1)) + tx := types.NewTransaction(0, testAddr, amount, params.TxGas, gasPrice, nil) signedTx, err := types.SignTx(tx, types.HomesteadSigner{}, testKey) if err != nil { t.Errorf("could not sign tx: %v", err) @@ -183,7 +185,9 @@ func TestNewSimulatedBackend_AdjustTimeFail(t *testing.T) { t.Errorf("adjusted time not equal to a minute. prev: %v, new: %v", prevTime, newTime) } // Put a transaction after adjusting time - tx2 := types.NewTransaction(1, testAddr, big.NewInt(1000), params.TxGas, big.NewInt(1), nil) + amount2, _ := uint256.FromBig(big.NewInt(1000)) + gasPrice2, _ := uint256.FromBig(big.NewInt(1)) + tx2 := types.NewTransaction(1, testAddr, amount2, params.TxGas, gasPrice2, nil) signedTx2, err := types.SignTx(tx2, types.HomesteadSigner{}, testKey) if err != nil { t.Errorf("could not sign tx: %v", err)