diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-08-13 08:34:03 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-08-17 08:31:21 +0800 |
commit | 0b9a9d92afc48745b2e4b438f31640c362882f78 (patch) | |
tree | 671cc12d1241f9ea9f32fabae47cc5854ea01083 /packages/contracts/test/utils | |
parent | a82e36c1d473d7fde5af52683f7a04f74a1c63c1 (diff) | |
download | dexon-sol-tools-0b9a9d92afc48745b2e4b438f31640c362882f78.tar dexon-sol-tools-0b9a9d92afc48745b2e4b438f31640c362882f78.tar.gz dexon-sol-tools-0b9a9d92afc48745b2e4b438f31640c362882f78.tar.bz2 dexon-sol-tools-0b9a9d92afc48745b2e4b438f31640c362882f78.tar.lz dexon-sol-tools-0b9a9d92afc48745b2e4b438f31640c362882f78.tar.xz dexon-sol-tools-0b9a9d92afc48745b2e4b438f31640c362882f78.tar.zst dexon-sol-tools-0b9a9d92afc48745b2e4b438f31640c362882f78.zip |
Add tests for ERC721Token
Diffstat (limited to 'packages/contracts/test/utils')
-rw-r--r-- | packages/contracts/test/utils/artifacts.ts | 2 | ||||
-rw-r--r-- | packages/contracts/test/utils/log_decoder.ts | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/packages/contracts/test/utils/artifacts.ts b/packages/contracts/test/utils/artifacts.ts index 65f72015f..e86ad5406 100644 --- a/packages/contracts/test/utils/artifacts.ts +++ b/packages/contracts/test/utils/artifacts.ts @@ -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, diff --git a/packages/contracts/test/utils/log_decoder.ts b/packages/contracts/test/utils/log_decoder.ts index 5a4801319..31e8679be 100644 --- a/packages/contracts/test/utils/log_decoder.ts +++ b/packages/contracts/test/utils/log_decoder.ts @@ -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; } |