Skip to content

Commit

Permalink
fix end to end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Jun 27, 2024
1 parent ad272af commit c639f11
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/axelar/AxelarTransceiverEndToEnd.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ contract AxelarTransceiverEndToEnd is Test {
function setUp() public {
gateway = IAxelarGateway(new MockAxelarGateway());
gasService = IAxelarGasService(address(new MockAxelarGasService()));

// Setup Source Infrastructure
sourceChainId = 1;
sourceToken = new WstEthL2Token();
address tokenImplementaion = address(new WstEthL2Token());
sourceToken = WstEthL2Token(address(new ERC1967Proxy(tokenImplementaion, abi.encodeWithSelector(WstEthL2Token.initialize.selector, 'Source Token', 'ST', OWNER))));
vm.prank(OWNER);
sourceToken.setMinter(OWNER);
address sourceManagerImplementation = address(
new NttManager(
address(sourceToken),
Expand All @@ -66,7 +68,9 @@ contract AxelarTransceiverEndToEnd is Test {

// Setup Recipient Infrastructure
recipientChainId = 2;
recipientToken = new WstEthL2Token();
recipientToken = WstEthL2Token(address(new ERC1967Proxy(tokenImplementaion, abi.encodeWithSelector(WstEthL2Token.initialize.selector, 'Source Token', 'ST', OWNER))));
vm.prank(OWNER);
recipientToken.setMinter(OWNER);
address recipientManagerImplementation = address(
new NttManager(
address(recipientToken),
Expand All @@ -93,7 +97,7 @@ contract AxelarTransceiverEndToEnd is Test {

bytes32 sourceNttManagerAddress = bytes32(uint256(uint160(address(sourceNttmanager))));
bytes32 recipientNttManagerAddress = bytes32(uint256(uint160(address(recipientNttManager))));

// set peer ntt manager on source
vm.prank(OWNER);
sourceNttmanager.setPeer(recipientChainId, recipientNttManagerAddress, 18, 100000000);
Expand Down

0 comments on commit c639f11

Please sign in to comment.