From a1956bb6d7a8eb7281c28a8dea21b061d29955d9 Mon Sep 17 00:00:00 2001 From: A5 Pickle Date: Wed, 13 Mar 2024 15:16:25 -0500 Subject: [PATCH] evm: forge fmt --- evm/forge/tests/TokenRouter.t.sol | 8 ++------ evm/src/TokenRouter/assets/TokenRouterAdmin.sol | 3 +-- evm/src/interfaces/ITokenRouterAdmin.sol | 3 +-- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/evm/forge/tests/TokenRouter.t.sol b/evm/forge/tests/TokenRouter.t.sol index 90bc20093..9e30e9738 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 1ff92cb80..95d859510 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 1c4120920..eb3cf92ef 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`.