From b64791d984d68958613d6c65b2e016702a0ad0b7 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Tue, 7 Sep 2021 16:44:59 +0530 Subject: [PATCH] Minor comment fixes --- contracts/mainnet/connectors/basic-ERC1155/main.sol | 8 ++++---- contracts/mainnet/connectors/basic-ERC721/main.sol | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contracts/mainnet/connectors/basic-ERC1155/main.sol b/contracts/mainnet/connectors/basic-ERC1155/main.sol index b6ab4af8..0aef5cd7 100644 --- a/contracts/mainnet/connectors/basic-ERC1155/main.sol +++ b/contracts/mainnet/connectors/basic-ERC1155/main.sol @@ -2,7 +2,7 @@ pragma solidity ^0.7.0; /** * @title Basic. - * @dev Deposit & Withdraw from DSA. + * @dev Deposit & Withdraw from ERC1155 DSA. */ import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; @@ -13,7 +13,7 @@ import {Events} from "./events.sol"; abstract contract BasicResolver is Events, DSMath, Basic { /** * @dev Deposit Assets To Smart Account. - * @notice Deposit a ERC721 token to DSA + * @notice Deposit a ERC1155 token to DSA * @param token Address of token. * @param tokenId ID of token. * @param amount Amount to deposit. @@ -31,7 +31,7 @@ abstract contract BasicResolver is Events, DSMath, Basic { payable returns (string memory _eventName, bytes memory _eventParam) { - uint256 _amount = getUint(getId, tokenId); + uint256 _amount = getUint(getId, amount); IERC1155 tokenContract = IERC1155(token); tokenContract.safeTransferFrom( @@ -57,7 +57,7 @@ abstract contract BasicResolver is Events, DSMath, Basic { /** * @dev Withdraw Assets To Smart Account. - * @notice Withdraw a ERC721 token from DSA + * @notice Withdraw a ERC1155 token from DSA * @param token Address of the token. * @param tokenId ID of token. * @param to The address to receive the token upon withdrawal diff --git a/contracts/mainnet/connectors/basic-ERC721/main.sol b/contracts/mainnet/connectors/basic-ERC721/main.sol index a6962b47..410c6342 100644 --- a/contracts/mainnet/connectors/basic-ERC721/main.sol +++ b/contracts/mainnet/connectors/basic-ERC721/main.sol @@ -2,7 +2,7 @@ pragma solidity ^0.7.0; /** * @title Basic. - * @dev Deposit & Withdraw from DSA. + * @dev Deposit & Withdraw ERC721 from DSA. */ import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";