Skip to content

Commit ee16ddc

Browse files
YashYash
authored andcommitted
private mapping
1 parent 9616b5c commit ee16ddc

File tree

3 files changed

+2
-47
lines changed

3 files changed

+2
-47
lines changed

contracts/feature/TokenBundle.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pragma solidity ^0.8.0;
44
import "./interface/ITokenBundle.sol";
55

66
abstract 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];

docs/TempMultiwrap.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff 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

docs/TokenBundle.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,6 @@
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

0 commit comments

Comments
 (0)