diff --git a/test/basic-e2e.bats b/test/basic-e2e.bats index 135acc43..84892e80 100644 --- a/test/basic-e2e.bats +++ b/test/basic-e2e.bats @@ -22,14 +22,14 @@ setup() { # case 2: Transaction rejected sender attempts to transfer more than they have in their wallet # Trx will fail pre validation check on the node and will be dropped subsequently from the pool # without recording it on the chain and hence nonce will not change - local sender_balance=$(rpcQuery "balance" --ether "$senderAddr") || return 1 + local sender_balance=$(rpcQuery "balance" "--ether" "$senderAddr") || return 1 local excessive_value=$(echo "$sender_balance + 1" | bc)ether run sendTx "$private_key" "$receiver" "$excessive_value" - assert_failure "Transaction should fail when attempting to transfer more than the sender's balance" + assert_failure "Transaction should fail when attempting to transfer more than the sender balance" # check wheather nonce of sender was updated correctly or not local final_nonce=$(rpcQuery "nonce" "$senderAddr") || return 1 - assert_equal "$final_nonce" "$(echo "$initial_nonce + 1" | bc)" "Error: nonce not updated correctly" + assert_equal "$final_nonce" "$(echo "$initial_nonce + 1" | bc)" "Error nonce not updated correctly" } @test "Deploy ERC20Mock contract" {