Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing tests #2994

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/functional/feature_evm.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ def nonce_order_and_rbf(self):
# Try and send an already sent transaction
assert_raises_rpc_error(
-26,
"evm tx failed to pre-validate invalid nonce. Account nonce 6, signed_tx nonce 5",
"invalid nonce. Account nonce 6, signed_tx nonce 5",
self.nodes[0].sendrawtransaction,
raw_tx,
)
Expand Down
10 changes: 5 additions & 5 deletions test/functional/feature_evm_fee.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_low_gas_price(self):

assert_raises_rpc_error(
-32001,
"evm tx failed to pre-validate tx gas price is lower than initial block base fee",
"tx gas price is lower than initial block base fee",
self.nodes[0].eth_sendTransaction,
{
"from": self.ethAddress,
Expand Down Expand Up @@ -200,7 +200,7 @@ def test_max_gas_price(self):
# Test insufficient balance due to high gas fees
assert_raises_rpc_error(
-32001,
"evm tx failed to pre-validate insufficient balance to pay fees",
"insufficient balance to pay fees",
self.nodes[0].eth_sendTransaction,
{
"from": self.ethAddress,
Expand All @@ -221,7 +221,7 @@ def test_low_gas_limit(self):

assert_raises_rpc_error(
-32001,
"evm tx failed to pre-validate gas limit is below the minimum gas per tx",
"gas limit is below the minimum gas per tx",
self.nodes[0].eth_sendTransaction,
{
"from": self.ethAddress,
Expand All @@ -242,7 +242,7 @@ def test_gas_limit_higher_than_block_limit(self):

assert_raises_rpc_error(
-32001,
"evm tx failed to pre-validate gas limit higher than max_gas_per_block",
"gas limit higher than max_gas_per_block",
self.nodes[0].eth_sendTransaction,
{
"from": self.ethAddress,
Expand All @@ -263,7 +263,7 @@ def test_fee_deduction_empty_balance(self):
assert_equal(int(balance[2:], 16), 000000000000000000000)
assert_raises_rpc_error(
-32001,
"evm tx failed to pre-validate insufficient balance to pay fees",
"insufficient balance to pay fees",
self.nodes[0].eth_sendTransaction,
{
"from": emptyAddress,
Expand Down
2 changes: 1 addition & 1 deletion test/functional/feature_evm_miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ def multiple_transferdomain_txs(self):
for i in range(10):
assert_raises_rpc_error(
-32600,
"transferdomain evm tx failed to pre-validate : Invalid nonce. Account nonce 11, signed_tx nonce {}".format(
"Invalid nonce. Account nonce 11, signed_tx nonce {}".format(
start_nonce_erc55 + i
),
self.nodes[0].transferdomain,
Expand Down
2 changes: 1 addition & 1 deletion test/functional/feature_evm_transferdomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ def invalid_transfer_invalid_nonce(self):

assert_raises_rpc_error(
-32600,
"transferdomain evm tx failed to pre-validate : Invalid nonce. Account nonce 1, signed_tx nonce 0",
"Invalid nonce. Account nonce 1, signed_tx nonce 0",
self.nodes[0].transferdomain,
[
{
Expand Down
Loading