Skip to content

Commit

Permalink
evm: forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
a5-pickle committed Mar 13, 2024
1 parent 44252c7 commit a1956bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
8 changes: 2 additions & 6 deletions evm/forge/tests/TokenRouter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,7 @@ contract TokenRouterTest is Test {
vm.prank(makeAddr("ownerAssistant"));
vm.expectRevert(abi.encodeWithSignature("NotTheOwner()"));
router.updateRouterEndpoint(
ARB_CHAIN,
Endpoint({router: routerEndpoint, mintRecipient: mintRecipient}),
ARB_DOMAIN
ARB_CHAIN, Endpoint({router: routerEndpoint, mintRecipient: mintRecipient}), ARB_DOMAIN
);
}

Expand All @@ -479,9 +477,7 @@ contract TokenRouterTest is Test {

vm.prank(makeAddr("owner"));
router.updateRouterEndpoint(
ARB_CHAIN,
Endpoint({router: routerEndpoint, mintRecipient: mintRecipient}),
domain
ARB_CHAIN, Endpoint({router: routerEndpoint, mintRecipient: mintRecipient}), domain
);

assertEq(router.getRouter(ARB_CHAIN), routerEndpoint);
Expand Down
3 changes: 1 addition & 2 deletions evm/src/TokenRouter/assets/TokenRouterAdmin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ abstract contract TokenRouterAdmin is ITokenRouterAdmin, Admin, State {
revert ErrInvalidEndpoint(bytes32(0));
}

mapping(uint16 chain => Endpoint) storage endpoints =
getRouterEndpointState().endpoints;
mapping(uint16 chain => Endpoint) storage endpoints = getRouterEndpointState().endpoints;

// When a router is disabled, we set the router universal address to zero, but we will leave
// the mint recipient alone. So if the mint recipient is non-zero, this indicates that an
Expand Down
3 changes: 1 addition & 2 deletions evm/src/interfaces/ITokenRouterAdmin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ interface ITokenRouterAdmin {
* @param domain The Circle domain for the specified `chain`.
* @dev This function is only callable by the contract owner.
*/
function updateRouterEndpoint(uint16 chain, Endpoint memory endpoint, uint32 domain)
external;
function updateRouterEndpoint(uint16 chain, Endpoint memory endpoint, uint32 domain) external;

/**
* @notice Disable a `router` endpoint for the specified Wormhole `chain`.
Expand Down

0 comments on commit a1956bb

Please sign in to comment.