aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-27 16:47:14 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-29 22:52:53 +0800
commit3aef323c1334e577905855cac50a6f41245563c6 (patch)
tree2d2f9be422fcaae0db97f71fe636ecc0eacf5547 /packages/contract-wrappers/test
parenta655cd046c79d53de69e71bf9217155a00a2ebe8 (diff)
downloaddexon-sol-tools-3aef323c1334e577905855cac50a6f41245563c6.tar
dexon-sol-tools-3aef323c1334e577905855cac50a6f41245563c6.tar.gz
dexon-sol-tools-3aef323c1334e577905855cac50a6f41245563c6.tar.bz2
dexon-sol-tools-3aef323c1334e577905855cac50a6f41245563c6.tar.lz
dexon-sol-tools-3aef323c1334e577905855cac50a6f41245563c6.tar.xz
dexon-sol-tools-3aef323c1334e577905855cac50a6f41245563c6.tar.zst
dexon-sol-tools-3aef323c1334e577905855cac50a6f41245563c6.zip
Refactor ERC20 token transfer proxy and it's tests
Diffstat (limited to 'packages/contract-wrappers/test')
-rw-r--r--packages/contract-wrappers/test/erc20_proxy_wrapper_test.ts (renamed from packages/contract-wrappers/test/token_transfer_proxy_wrapper_test.ts)8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/contract-wrappers/test/token_transfer_proxy_wrapper_test.ts b/packages/contract-wrappers/test/erc20_proxy_wrapper_test.ts
index 0b66985aa..6bf9f1e25 100644
--- a/packages/contract-wrappers/test/token_transfer_proxy_wrapper_test.ts
+++ b/packages/contract-wrappers/test/erc20_proxy_wrapper_test.ts
@@ -9,7 +9,7 @@ import { provider } from './utils/web3_wrapper';
chaiSetup.configure();
const expect = chai.expect;
-describe('TokenTransferProxyWrapper', () => {
+describe('ERC20ProxyWrapper', () => {
let contractWrappers: ContractWrappers;
const config = {
networkId: constants.TESTRPC_NETWORK_ID,
@@ -19,15 +19,15 @@ describe('TokenTransferProxyWrapper', () => {
});
describe('#isAuthorizedAsync', () => {
it('should return false if the address is not authorized', async () => {
- const isAuthorized = await contractWrappers.proxy.isAuthorizedAsync(constants.NULL_ADDRESS);
+ const isAuthorized = await contractWrappers.erc20Proxy.isAuthorizedAsync(constants.NULL_ADDRESS);
expect(isAuthorized).to.be.false();
});
});
describe('#getAuthorizedAddressesAsync', () => {
it('should return the list of authorized addresses', async () => {
- const authorizedAddresses = await contractWrappers.proxy.getAuthorizedAddressesAsync();
+ const authorizedAddresses = await contractWrappers.erc20Proxy.getAuthorizedAddressesAsync();
for (const authorizedAddress of authorizedAddresses) {
- const isAuthorized = await contractWrappers.proxy.isAuthorizedAsync(authorizedAddress);
+ const isAuthorized = await contractWrappers.erc20Proxy.isAuthorizedAsync(authorizedAddress);
expect(isAuthorized).to.be.true();
}
});