Skip to content

Commit

Permalink
fix: resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
rachit77 committed Sep 17, 2024
1 parent 283f5ed commit 75a4d19
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/helpers/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,11 @@ function sendTx() {
return 1
fi

<<<<<<< HEAD
# Check initial ether balance of sender and receiver
local sender_initial_balance=$(rpcQuery "balance" "$senderAddr" "latest") || return 1
local receiver_initial_balance=$(rpcQuery "balance" "$account_addr" "latest") || return 1


=======
>>>>>>> develop
# Check if the first remaining argument is a numeric value (Ether to be transferred)
if [[ "$value_or_function_sig" =~ ^[0-9]+(ether)?$ ]]; then
# Case: EOA transaction (Ether transfer)
Expand Down Expand Up @@ -152,15 +149,12 @@ function sendTx() {
return 1
fi

<<<<<<< HEAD
checkTransactionSuccess "$senderAddr" "$receiver" "$value_or_function_sig" "$tx_hash" "$sender_initial_balance" "$receiver_initial_balance"
if [[ $? -ne 0 ]]; then
echo "Error: Balance not updated correctly."
return 1
fi

=======
>>>>>>> develop
echo "Transaction successful (transaction hash: $tx_hash)"

return 0
Expand Down Expand Up @@ -202,7 +196,6 @@ function queryContract() {

return 0
}
<<<<<<< HEAD

function rpcQuery() {
local method="$1" # The JSON-RPC method name
Expand Down Expand Up @@ -259,5 +252,3 @@ function checkTransactionSuccess() {
# Asserts sender's balance change is equal to the value transferred plus the gas fee
assert_equal "$sender_balance_change" "$(echo "$value_in_wei + $gas_fee" | bc)" "Error: sender balance updated incorrectly."
}
=======
>>>>>>> develop

0 comments on commit 75a4d19

Please sign in to comment.