documentation improvement
This commit is contained in:
parent
6ede82efa8
commit
e8936b07ab
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue