Skip to content

Commit

Permalink
fix(precompile): pluralize token to tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Jul 30, 2024
1 parent 9c469d4 commit 2b1aa92
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/ExocoreGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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]
);

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/precompiles/IAssets.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/AssetsMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ contract AssetsMock is IAssets {
return (true, updated);
}

function registerOrUpdateToken(
function registerOrUpdateTokens(
uint32 clientChainId,
bytes calldata token,
uint8 decimals,
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/ExocoreGatewayMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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]
);

Expand Down

0 comments on commit 2b1aa92

Please sign in to comment.