From 2b1aa9217e4d6c40a4971ade97b1d5b335a179b1 Mon Sep 17 00:00:00 2001 From: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com> Date: Tue, 30 Jul 2024 05:38:35 +0000 Subject: [PATCH] fix(precompile): pluralize token to tokens --- src/core/ExocoreGateway.sol | 2 +- src/interfaces/precompiles/IAssets.sol | 2 +- test/mocks/AssetsMock.sol | 2 +- test/mocks/ExocoreGatewayMock.sol | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/ExocoreGateway.sol b/src/core/ExocoreGateway.sol index ee1da1a6..b71edb7d 100644 --- a/src/core/ExocoreGateway.sol +++ b/src/core/ExocoreGateway.sol @@ -186,7 +186,7 @@ contract ExocoreGateway is require(bytes(names[i]).length != 0, "ExocoreGateway: name cannot be empty"); require(bytes(metaData[i]).length != 0, "ExocoreGateway: meta data cannot be empty"); - (success, updated) = ASSETS_CONTRACT.registerOrUpdateToken( + (success, updated) = ASSETS_CONTRACT.registerOrUpdateTokens( clientChainId, abi.encodePacked(tokens[i]), decimals[i], tvlLimits[i], names[i], metaData[i] ); diff --git a/src/interfaces/precompiles/IAssets.sol b/src/interfaces/precompiles/IAssets.sol index 12f0c822..ba0e2775 100644 --- a/src/interfaces/precompiles/IAssets.sol +++ b/src/interfaces/precompiles/IAssets.sol @@ -67,7 +67,7 @@ interface IAssets { /// @param metaData is the arbitrary metadata of the token /// @return success if the token registration is successful /// @return updated whether the token was added or updated - function registerOrUpdateToken( + function registerOrUpdateTokens( uint32 clientChainID, bytes calldata token, uint8 decimals, diff --git a/test/mocks/AssetsMock.sol b/test/mocks/AssetsMock.sol index 0f4f7a4e..e0688f8b 100644 --- a/test/mocks/AssetsMock.sol +++ b/test/mocks/AssetsMock.sol @@ -65,7 +65,7 @@ contract AssetsMock is IAssets { return (true, updated); } - function registerOrUpdateToken( + function registerOrUpdateTokens( uint32 clientChainId, bytes calldata token, uint8 decimals, diff --git a/test/mocks/ExocoreGatewayMock.sol b/test/mocks/ExocoreGatewayMock.sol index 25d8741f..3e2a523c 100644 --- a/test/mocks/ExocoreGatewayMock.sol +++ b/test/mocks/ExocoreGatewayMock.sol @@ -194,7 +194,7 @@ contract ExocoreGatewayMock is require(bytes(names[i]).length != 0, "ExocoreGateway: name cannot be empty"); require(bytes(metaData[i]).length != 0, "ExocoreGateway: meta data cannot be empty"); - (success, updated) = ASSETS_CONTRACT.registerOrUpdateToken( + (success, updated) = ASSETS_CONTRACT.registerOrUpdateTokens( clientChainId, abi.encodePacked(tokens[i]), decimals[i], tvlLimits[i], names[i], metaData[i] );