Remove unused params

This commit is contained in:
Amir 2020-01-13 16:34:30 -08:00
parent 3ca2f8ac9e
commit 350934ca21
4 changed files with 7 additions and 10 deletions

View File

@ -60,7 +60,7 @@ export class ERC1155ProxyWrapper {
txDefaults, txDefaults,
artifacts, artifacts,
); );
const erc1155Wrapper = new Erc1155Wrapper(erc1155Contract, this._provider, this._contractOwnerAddress); const erc1155Wrapper = new Erc1155Wrapper(erc1155Contract, this._contractOwnerAddress);
this._dummyTokenWrappers.push(erc1155Wrapper); this._dummyTokenWrappers.push(erc1155Wrapper);
} }
return this._dummyTokenWrappers; return this._dummyTokenWrappers;

View File

@ -1,5 +1,5 @@
import { BigNumber } from '@0x/utils'; import { BigNumber } from '@0x/utils';
import { LogWithDecodedArgs, Provider, TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import { LogWithDecodedArgs, TransactionReceiptWithDecodedLogs } from 'ethereum-types';
import * as _ from 'lodash'; import * as _ from 'lodash';
import { ERC1155MintableContract, ERC1155TransferSingleEventArgs } from './wrappers'; import { ERC1155MintableContract, ERC1155TransferSingleEventArgs } from './wrappers';
@ -8,7 +8,7 @@ export class Erc1155Wrapper {
private readonly _erc1155Contract: ERC1155MintableContract; private readonly _erc1155Contract: ERC1155MintableContract;
private readonly _contractOwner: string; private readonly _contractOwner: string;
constructor(contractInstance: ERC1155MintableContract, provider: Provider, contractOwner: string) { constructor(contractInstance: ERC1155MintableContract, contractOwner: string) {
this._erc1155Contract = contractInstance; this._erc1155Contract = contractInstance;
this._contractOwner = contractOwner; this._contractOwner = contractOwner;
} }

View File

@ -5,21 +5,18 @@ export {
IERC1155ReceiverContract, IERC1155ReceiverContract,
DummyERC1155ReceiverBatchTokenReceivedEventArgs, DummyERC1155ReceiverBatchTokenReceivedEventArgs,
ERC1155TransferSingleEventArgs, ERC1155TransferSingleEventArgs,
ERC1155TransferBatchEventArgs,
ERC1155Events,
} from './wrappers'; } from './wrappers';
export { artifacts } from './artifacts'; export { artifacts } from './artifacts';
export { Erc1155Wrapper } from './erc1155_wrapper'; export { Erc1155Wrapper } from './erc1155_wrapper';
export { export {
Provider,
TransactionReceiptWithDecodedLogs, TransactionReceiptWithDecodedLogs,
JSONRPCRequestPayload,
JSONRPCResponsePayload,
JSONRPCResponseError,
JSONRPCErrorCallback,
TransactionReceiptStatus, TransactionReceiptStatus,
ContractArtifact,
ContractChains, ContractChains,
CompilerOpts, CompilerOpts,
StandardContractOutput, StandardContractOutput,
ContractArtifact,
CompilerSettings, CompilerSettings,
ContractChainData, ContractChainData,
ContractAbi, ContractAbi,

View File

@ -67,7 +67,7 @@ describe('ERC1155Token', () => {
); );
receiver = erc1155Receiver.address; receiver = erc1155Receiver.address;
// create wrapper & mint erc1155 tokens // create wrapper & mint erc1155 tokens
erc1155Wrapper = new Erc1155Wrapper(erc1155Contract, provider, owner); erc1155Wrapper = new Erc1155Wrapper(erc1155Contract, owner);
fungibleToken = await erc1155Wrapper.mintFungibleTokensAsync([spender], spenderInitialFungibleBalance); fungibleToken = await erc1155Wrapper.mintFungibleTokensAsync([spender], spenderInitialFungibleBalance);
let nonFungibleTokens: BigNumber[]; let nonFungibleTokens: BigNumber[];
[, nonFungibleTokens] = await erc1155Wrapper.mintNonFungibleTokensAsync([spender]); [, nonFungibleTokens] = await erc1155Wrapper.mintNonFungibleTokensAsync([spender]);