Add tests for ERC721Token
This commit is contained in:
@@ -11,6 +11,7 @@ import * as Exchange from '../../artifacts/Exchange.json';
|
||||
import * as ExchangeWrapper from '../../artifacts/ExchangeWrapper.json';
|
||||
import * as Forwarder from '../../artifacts/Forwarder.json';
|
||||
import * as IAssetProxy from '../../artifacts/IAssetProxy.json';
|
||||
import * as InvalidERC721Receiver from '../../artifacts/InvalidERC721Receiver.json';
|
||||
import * as MixinAuthorizable from '../../artifacts/MixinAuthorizable.json';
|
||||
import * as MultiSigWallet from '../../artifacts/MultiSigWallet.json';
|
||||
import * as MultiSigWalletWithTimeLock from '../../artifacts/MultiSigWalletWithTimeLock.json';
|
||||
@@ -41,6 +42,7 @@ export const artifacts = {
|
||||
EtherToken: (EtherToken as any) as ContractArtifact,
|
||||
Forwarder: (Forwarder as any) as ContractArtifact,
|
||||
IAssetProxy: (IAssetProxy as any) as ContractArtifact,
|
||||
InvalidERC721Receiver: (InvalidERC721Receiver as any) as ContractArtifact,
|
||||
MixinAuthorizable: (MixinAuthorizable as any) as ContractArtifact,
|
||||
MultiSigWallet: (MultiSigWallet as any) as ContractArtifact,
|
||||
MultiSigWalletWithTimeLock: (MultiSigWalletWithTimeLock as any) as ContractArtifact,
|
||||
|
||||
@@ -48,7 +48,6 @@ export class LogDecoder {
|
||||
}
|
||||
public async getTxWithDecodedLogsAsync(txHash: string): Promise<TransactionReceiptWithDecodedLogs> {
|
||||
const tx = await this._web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
|
||||
tx.logs = _.filter(tx.logs, log => log.address === this._contractAddress);
|
||||
tx.logs = _.map(tx.logs, log => this.decodeLogOrThrow(log));
|
||||
return tx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user