aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/utils/erc20_wrapper.ts
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-07-06 13:00:09 +0800
committerJacob Evans <jacob@dekz.net>2018-07-06 13:30:07 +0800
commit0557d6a9bfc07b8d360970ffbcf582f8a26943cb (patch)
tree76b233a7a50c2e10ee3eb09a848c2494d0512c26 /packages/contracts/test/utils/erc20_wrapper.ts
parentb9b00e10d39c3c84bc72892ef37f1313e904414d (diff)
downloaddexon-0x-contracts-0557d6a9bfc07b8d360970ffbcf582f8a26943cb.tar.gz
dexon-0x-contracts-0557d6a9bfc07b8d360970ffbcf582f8a26943cb.tar.zst
dexon-0x-contracts-0557d6a9bfc07b8d360970ffbcf582f8a26943cb.zip
Forwarding contract (squashed commits)
Diffstat (limited to 'packages/contracts/test/utils/erc20_wrapper.ts')
-rw-r--r--packages/contracts/test/utils/erc20_wrapper.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/contracts/test/utils/erc20_wrapper.ts b/packages/contracts/test/utils/erc20_wrapper.ts
index 53e9791bc..9351b1e3d 100644
--- a/packages/contracts/test/utils/erc20_wrapper.ts
+++ b/packages/contracts/test/utils/erc20_wrapper.ts
@@ -138,6 +138,14 @@ export class ERC20Wrapper {
});
return balancesByOwner;
}
+ public addDummyTokenContract(dummy: DummyERC20TokenContract): void {
+ if (!_.isUndefined(this._dummyTokenContracts)) {
+ this._dummyTokenContracts.push(dummy);
+ }
+ }
+ public addTokenOwnerAddress(address: string): void {
+ this._tokenOwnerAddresses.push(address);
+ }
public getTokenOwnerAddresses(): string[] {
return this._tokenOwnerAddresses;
}