From ee16ddc2cfd955f9d2a3924694dc69db8c302c49 Mon Sep 17 00:00:00 2001 From: Yash Date: Sat, 7 May 2022 17:37:15 +0530 Subject: [PATCH] private mapping --- contracts/feature/TokenBundle.sol | 3 ++- docs/TempMultiwrap.md | 23 ----------------------- docs/TokenBundle.md | 23 ----------------------- 3 files changed, 2 insertions(+), 47 deletions(-) diff --git a/contracts/feature/TokenBundle.sol b/contracts/feature/TokenBundle.sol index 0ec78e639..43204d261 100644 --- a/contracts/feature/TokenBundle.sol +++ b/contracts/feature/TokenBundle.sol @@ -4,7 +4,7 @@ pragma solidity ^0.8.0; import "./interface/ITokenBundle.sol"; abstract contract TokenBundle is ITokenBundle { - mapping(uint256 => BundleInfo) public bundle; + mapping(uint256 => BundleInfo) private bundle; // function _getNextBundleId() internal virtual returns (uint256); @@ -21,6 +21,7 @@ abstract contract TokenBundle is ITokenBundle { } function _setBundle(Token[] calldata _tokensToBind, uint256 _bundleId) internal { + // uint256 _bundleId = _getNextBundleId(); require(_tokensToBind.length > 0, "no tokens to bind"); for (uint256 i = 0; i < _tokensToBind.length; i += 1) { bundle[_bundleId].tokens[i] = _tokensToBind[i]; diff --git a/docs/TempMultiwrap.md b/docs/TempMultiwrap.md index acea1e44c..8abf7c184 100644 --- a/docs/TempMultiwrap.md +++ b/docs/TempMultiwrap.md @@ -66,29 +66,6 @@ function balanceOf(address owner) external view returns (uint256) |---|---|---| | _0 | uint256 | undefined -### bundle - -```solidity -function bundle(uint256) external view returns (uint256 count, string uri) -``` - - - - - -#### Parameters - -| Name | Type | Description | -|---|---|---| -| _0 | uint256 | undefined - -#### Returns - -| Name | Type | Description | -|---|---|---| -| count | uint256 | undefined -| uri | string | undefined - ### contractType ```solidity diff --git a/docs/TokenBundle.md b/docs/TokenBundle.md index bc494ee43..2ebd9f30c 100644 --- a/docs/TokenBundle.md +++ b/docs/TokenBundle.md @@ -10,29 +10,6 @@ ## Methods -### bundle - -```solidity -function bundle(uint256) external view returns (uint256 count, string uri) -``` - - - - - -#### Parameters - -| Name | Type | Description | -|---|---|---| -| _0 | uint256 | undefined - -#### Returns - -| Name | Type | Description | -|---|---|---| -| count | uint256 | undefined -| uri | string | undefined - ### getToken ```solidity