Skip to content

Commit

Permalink
Fix retry receipts test. Install specific foundry release binary
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkaplan13 committed Oct 27, 2023
1 parent f03f224 commit 3e8e458
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 1 addition & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/*
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8

# Install Rust (needed to install specific commit of Foundry from source.)
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

# Install foundry from specific commit
SHELL ["/bin/bash", "-c"]
RUN curl -L https://raw.githubusercontent.com/foundry-rs/foundry/70d00222c2ef74fc484b8d98c5705d131ab31871/foundryup/install > /tmp/foundry-install-script && \
Expand All @@ -45,7 +42,7 @@ RUN curl -L https://raw.githubusercontent.com/foundry-rs/foundry/70d00222c2ef74f
echo "export PATH=\"$PATH:/$HOME/.foundry/bin\"">> ~/.bashrc && \
source ~/.bashrc && \
export PATH=$PATH:$HOME/.foundry/bin:$HOME/.cargo/bin && \
foundryup -C 70d0022
foundryup --version nightly-70d00222c2ef74fc484b8d98c5705d131ab31871

# Install python base58 decode library
RUN apt-get update && \
Expand Down
7 changes: 3 additions & 4 deletions scripts/local/integration-tests/retry_receipts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ echo "Next message ID for subnet $subnet_b_chain_id_hex is $result"
send_cross_subnet_message_destination_chain_id=$subnet_b_chain_id_hex
send_cross_subnet_message_destination_address=abcedf1234abcedf1234abcedf1234abcedf1234
send_bytes32=000000000000000000000000$send_cross_subnet_message_destination_address
send_cross_subnet_message_fee_amount=00000000000000000000000000000000000000000000000000000000000000FF
send_cross_subnet_message_required_gas_limit=0000000000000000000000000000000000000000000000000000000000001000
send_cross_subnet_message_fee_amount=255
send_cross_subnet_message_required_gas_limit=100000
send_cross_subnet_message_message_data=cafebabecafebabecafebabecafebabecafebabecafebabecafebabecafebabecafebabecafebabecafe
relayer_reward=255 # The fee amount 00FF in decimal form is 255

# Approve the Teleporter contract to some ERC20 tokens from the user account we're using to send transactions
approve_amount=1000000000000000000000000000
Expand Down Expand Up @@ -137,7 +136,7 @@ if [ ! -z "$relayer_address" ]; then
echo "Relayer after retryReceipts can redeem rewards of $afterReward"

reward=$(($afterReward-$startingReward))
if [[ $reward != $relayer_reward ]]; then # The fee amount 00FF in decimal form is 255
if [[ $reward != $send_cross_subnet_message_fee_amount ]]; then
echo "Relayer reward should be rewarded $send_cross_subnet_message_fee_amount but instead increased by $reward"
exit 1
fi
Expand Down

0 comments on commit 3e8e458

Please sign in to comment.