diff --git a/evm/forge/tests/TokenRouter.t.sol b/evm/forge/tests/TokenRouter.t.sol index 90bc2009..9e30e973 100644 --- a/evm/forge/tests/TokenRouter.t.sol +++ b/evm/forge/tests/TokenRouter.t.sol @@ -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 ); } @@ -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); diff --git a/evm/src/TokenRouter/assets/TokenRouterAdmin.sol b/evm/src/TokenRouter/assets/TokenRouterAdmin.sol index 1ff92cb8..95d85951 100644 --- a/evm/src/TokenRouter/assets/TokenRouterAdmin.sol +++ b/evm/src/TokenRouter/assets/TokenRouterAdmin.sol @@ -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 diff --git a/evm/src/interfaces/ITokenRouterAdmin.sol b/evm/src/interfaces/ITokenRouterAdmin.sol index 1c412092..eb3cf92e 100644 --- a/evm/src/interfaces/ITokenRouterAdmin.sol +++ b/evm/src/interfaces/ITokenRouterAdmin.sol @@ -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`.