Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed May 2, 2024
1 parent e2ab104 commit 97bc38f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
42 changes: 21 additions & 21 deletions packages/protocol/contracts/tokenvault/BridgedERC1155.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,33 +61,16 @@ contract BridgedERC1155 is EssentialContract, ERC1155Upgradeable {
name = _name;
}

/// @dev Mints tokens.
/// @param _to Address to receive the minted tokens.
/// @param _tokenId ID of the token to mint.
/// @param _amount Amount of tokens to mint.
function mint(
address _to,
uint256 _tokenId,
uint256 _amount
)
public
whenNotPaused
onlyFromNamed(LibStrings.B_ERC1155_VAULT)
nonReentrant
{
_mint(_to, _tokenId, _amount, "");
}

/// @dev Mints tokens.
/// @param _to Address to receive the minted tokens.
/// @param _tokenIds ID of the token to mint.
/// @param _amounts Amount of tokens to mint.
function mintBatch(
address _to,
uint256[] memory _tokenIds,
uint256[] memory _amounts
uint256[] calldata _tokenIds,
uint256[] calldata _amounts
)
public
external
whenNotPaused
onlyFromNamed(LibStrings.B_ERC1155_VAULT)
nonReentrant
Expand All @@ -112,10 +95,27 @@ contract BridgedERC1155 is EssentialContract, ERC1155Upgradeable {
_burnBatch(_account, _ids, _amounts);
}

/// @dev Mints tokens.
/// @param _to Address to receive the minted tokens.
/// @param _tokenId ID of the token to mint.
/// @param _amount Amount of tokens to mint.
function mint(
address _to,
uint256 _tokenId,
uint256 _amount
)
public
whenNotPaused
onlyFromNamed(LibStrings.B_ERC1155_VAULT)
nonReentrant
{
_mint(_to, _tokenId, _amount, "");
}

/// @notice Gets the canonical token's address and chain ID.
/// @return The canonical token's address.
/// @return The canonical token's chain ID.
function canonical() external view returns (address, uint256) {
function canonical() public view returns (address, uint256) {
return (srcToken, srcChainId);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/tokenvault/BridgedERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ contract BridgedERC20 is EssentialContract, IBridgedERC20, ERC20Upgradeable, IER
/// @notice Gets the canonical token's address and chain ID.
/// @return The canonical token's address.
/// @return The canonical token's chain ID.
function canonical() external view returns (address, uint256) {
function canonical() public view returns (address, uint256) {
return (srcToken, srcChainId);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/tokenvault/BridgedERC721.sol
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ contract BridgedERC721 is EssentialContract, ERC721Upgradeable {
/// @notice Gets the canonical token's address and chain ID.
/// @return The canonical token's address.
/// @return The canonical token's chain ID.
function canonical() external view returns (address, uint256) {
function canonical() public view returns (address, uint256) {
return (srcToken, srcChainId);
}

Expand Down

0 comments on commit 97bc38f

Please sign in to comment.