From e8936b07ab8a16fe1c267dda5e5ef09581996a4f Mon Sep 17 00:00:00 2001 From: Moon Date: Sun, 29 Jan 2023 16:58:16 -0500 Subject: [PATCH] documentation improvement --- contracts/ERC1155.sol | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contracts/ERC1155.sol b/contracts/ERC1155.sol index 56ee283..86bb542 100644 --- a/contracts/ERC1155.sol +++ b/contracts/ERC1155.sol @@ -6,7 +6,6 @@ import "./Common.sol"; import "./IERC1155TokenReceiver.sol"; import "./IERC1155.sol"; -// A sample implementation of core ERC1155 function. contract ERC1155 is IERC1155, ERC165, CommonConstants { using Address for address; @@ -130,7 +129,7 @@ contract ERC1155 is IERC1155, ERC165, CommonConstants @notice Get the balance of an account's Tokens. @param _owner The address of the token holder @param _id ID of the Token - @return The _owner's balance of the Token type requested + @return balance The _owner's balance of the Token type requested */ function balanceOf(address _owner, uint256 _id) external view returns (uint256) { // The balance of any account can be calculated from the Transfer events history. @@ -144,7 +143,7 @@ contract ERC1155 is IERC1155, ERC165, CommonConstants @notice Get the balance of multiple account/token pairs @param _owners The addresses of the token holders @param _ids ID of the Tokens - @return The _owner's balance of the Token types requested (i.e. balance for each (owner, id) pair) + @return balance The _owner's balance of the Token types requested (i.e. balance for each (owner, id) pair) */ function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids) external view returns (uint256[] memory) {