File tree Expand file tree Collapse file tree 3 files changed +2
-47
lines changed Expand file tree Collapse file tree 3 files changed +2
-47
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ pragma solidity ^0.8.0;
44import "./interface/ITokenBundle.sol " ;
55
66abstract contract TokenBundle is ITokenBundle {
7- mapping (uint256 => BundleInfo) public bundle;
7+ mapping (uint256 => BundleInfo) private bundle;
88
99 // function _getNextBundleId() internal virtual returns (uint256);
1010
@@ -21,6 +21,7 @@ abstract contract TokenBundle is ITokenBundle {
2121 }
2222
2323 function _setBundle (Token[] calldata _tokensToBind , uint256 _bundleId ) internal {
24+ // uint256 _bundleId = _getNextBundleId();
2425 require (_tokensToBind.length > 0 , "no tokens to bind " );
2526 for (uint256 i = 0 ; i < _tokensToBind.length ; i += 1 ) {
2627 bundle[_bundleId].tokens[i] = _tokensToBind[i];
Original file line number Diff line number Diff line change @@ -66,29 +66,6 @@ function balanceOf(address owner) external view returns (uint256)
6666| ---| ---| ---|
6767| _ 0 | uint256 | undefined
6868
69- ### bundle
70-
71- ``` solidity
72- function bundle(uint256) external view returns (uint256 count, string uri)
73- ```
74-
75-
76-
77-
78-
79- #### Parameters
80-
81- | Name | Type | Description |
82- | ---| ---| ---|
83- | _ 0 | uint256 | undefined
84-
85- #### Returns
86-
87- | Name | Type | Description |
88- | ---| ---| ---|
89- | count | uint256 | undefined
90- | uri | string | undefined
91-
9269### contractType
9370
9471``` solidity
Original file line number Diff line number Diff line change 1010
1111## Methods
1212
13- ### bundle
14-
15- ``` solidity
16- function bundle(uint256) external view returns (uint256 count, string uri)
17- ```
18-
19-
20-
21-
22-
23- #### Parameters
24-
25- | Name | Type | Description |
26- | ---| ---| ---|
27- | _ 0 | uint256 | undefined
28-
29- #### Returns
30-
31- | Name | Type | Description |
32- | ---| ---| ---|
33- | count | uint256 | undefined
34- | uri | string | undefined
35-
3613### getToken
3714
3815``` solidity
You can’t perform that action at this time.
0 commit comments