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

Smr 1814 Part 2 imx withdraw on L1 #22

Merged
merged 5 commits into from
Nov 7, 2023
Merged

Conversation

wcgcyx
Copy link
Contributor

@wcgcyx wcgcyx commented Nov 6, 2023

Blocked by #18 and #21

bytes32 commandId = bytes32("testCommandId");
string memory sourceAddress = rootBridge.childBridgeAdaptor();

uint256 thisPreBal = imxToken.balanceOf(receiver);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: thisPreBal is a bit misleading on this test, since it is the receiver's balance not this contract's balance like the previous test


axelarAdaptor.execute(commandId, CHILD_CHAIN_NAME, sourceAddress, data);

uint256 thisPostBal = imxToken.balanceOf(receiver);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: thisPostBal is a bit misleading on this test, since it is the receiver's balance not this contract's balance like the previous test

// Give bridge some IMX tokens
imxToken.transfer(address(rootBridge), 100 ether);

uint256 thisPreBal = imxToken.balanceOf(address(receiver));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: same comment as above on thisPreBal

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, updated.

@wcgcyx wcgcyx merged commit fabfe75 into main Nov 7, 2023
3 checks passed
@ermyas ermyas deleted the SMR-1814-2-IMX-withdraw-L1 branch April 12, 2024 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants