Skip to content

Commit

Permalink
private mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash authored and Yash committed May 7, 2022
1 parent 9616b5c commit ee16ddc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 47 deletions.
3 changes: 2 additions & 1 deletion contracts/feature/TokenBundle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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];
Expand Down
23 changes: 0 additions & 23 deletions docs/TempMultiwrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 0 additions & 23 deletions docs/TokenBundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee16ddc

Please sign in to comment.