aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-11 19:11:50 +0800
committerFabio Berger <me@fabioberger.com>2018-05-11 19:11:50 +0800
commit294a65f84224e85b7dbeee7eace02578906e49dd (patch)
tree692188f61a013702280d20f9c6ba7cd4c71a22b6 /packages/contract-wrappers
parentbf8550ae1ed1685e8dc4fe5ae15cdbe577a07644 (diff)
downloaddexon-sol-tools-294a65f84224e85b7dbeee7eace02578906e49dd.tar
dexon-sol-tools-294a65f84224e85b7dbeee7eace02578906e49dd.tar.gz
dexon-sol-tools-294a65f84224e85b7dbeee7eace02578906e49dd.tar.bz2
dexon-sol-tools-294a65f84224e85b7dbeee7eace02578906e49dd.tar.lz
dexon-sol-tools-294a65f84224e85b7dbeee7eace02578906e49dd.tar.xz
dexon-sol-tools-294a65f84224e85b7dbeee7eace02578906e49dd.tar.zst
dexon-sol-tools-294a65f84224e85b7dbeee7eace02578906e49dd.zip
Fix prettier
Diffstat (limited to 'packages/contract-wrappers')
-rw-r--r--packages/contract-wrappers/src/contract_wrappers/token_registry_wrapper.ts5
-rw-r--r--packages/contract-wrappers/src/contract_wrappers/token_transfer_proxy_wrapper.ts5
-rw-r--r--packages/contract-wrappers/test/exchange_transfer_simulator_test.ts4
-rw-r--r--packages/contract-wrappers/test/token_registry_wrapper_test.ts4
4 files changed, 8 insertions, 10 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/token_registry_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/token_registry_wrapper.ts
index 5ae488172..e75973658 100644
--- a/packages/contract-wrappers/src/contract_wrappers/token_registry_wrapper.ts
+++ b/packages/contract-wrappers/src/contract_wrappers/token_registry_wrapper.ts
@@ -105,10 +105,7 @@ export class TokenRegistryWrapper extends ContractWrapper {
* @returns The Ethereum address of the TokenRegistry contract being used.
*/
public getContractAddress(): string {
- const contractAddress = this._getContractAddress(
- artifacts.TokenRegistry,
- this._contractAddressIfExists,
- );
+ const contractAddress = this._getContractAddress(artifacts.TokenRegistry, this._contractAddressIfExists);
return contractAddress;
}
private _invalidateContractInstance(): void {
diff --git a/packages/contract-wrappers/src/contract_wrappers/token_transfer_proxy_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/token_transfer_proxy_wrapper.ts
index ebd40e4d2..02a2e19d0 100644
--- a/packages/contract-wrappers/src/contract_wrappers/token_transfer_proxy_wrapper.ts
+++ b/packages/contract-wrappers/src/contract_wrappers/token_transfer_proxy_wrapper.ts
@@ -46,10 +46,7 @@ export class TokenTransferProxyWrapper extends ContractWrapper {
* @returns The Ethereum address of the TokenTransferProxy contract being used.
*/
public getContractAddress(): string {
- const contractAddress = this._getContractAddress(
- artifacts.TokenTransferProxy,
- this._contractAddressIfExists,
- );
+ const contractAddress = this._getContractAddress(artifacts.TokenTransferProxy, this._contractAddressIfExists);
return contractAddress;
}
private _invalidateContractInstance(): void {
diff --git a/packages/contract-wrappers/test/exchange_transfer_simulator_test.ts b/packages/contract-wrappers/test/exchange_transfer_simulator_test.ts
index 0011f0626..b4ea91181 100644
--- a/packages/contract-wrappers/test/exchange_transfer_simulator_test.ts
+++ b/packages/contract-wrappers/test/exchange_transfer_simulator_test.ts
@@ -111,7 +111,9 @@ describe('ExchangeTransferSimulator', () => {
const senderProxyAllowance = await store.getProxyAllowanceAsync(exampleTokenAddress, sender);
expect(senderBalance).to.be.bignumber.equal(0);
expect(recipientBalance).to.be.bignumber.equal(transferAmount);
- expect(senderProxyAllowance).to.be.bignumber.equal(contractWrappers.token.UNLIMITED_ALLOWANCE_IN_BASE_UNITS);
+ expect(senderProxyAllowance).to.be.bignumber.equal(
+ contractWrappers.token.UNLIMITED_ALLOWANCE_IN_BASE_UNITS,
+ );
});
});
});
diff --git a/packages/contract-wrappers/test/token_registry_wrapper_test.ts b/packages/contract-wrappers/test/token_registry_wrapper_test.ts
index 1b8ce4d74..a21efed21 100644
--- a/packages/contract-wrappers/test/token_registry_wrapper_test.ts
+++ b/packages/contract-wrappers/test/token_registry_wrapper_test.ts
@@ -86,7 +86,9 @@ describe('TokenRegistryWrapper', () => {
});
describe('#getTokenAddressByName', () => {
it('should return correct address for a token in the registry', async () => {
- const tokenAddress = await contractWrappers.tokenRegistry.getTokenAddressByNameIfExistsAsync(registeredName);
+ const tokenAddress = await contractWrappers.tokenRegistry.getTokenAddressByNameIfExistsAsync(
+ registeredName,
+ );
expect(tokenAddress).to.be.equal(tokenAddressByName[registeredName]);
});
it('should return undefined for a token out of registry', async () => {