aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-09-02 11:01:10 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-09-04 22:57:47 +0800
commite480e08aa44b3af0ef506278ce2018f8659e5971 (patch)
tree50aae4e354d66a156c01b1cea5f1d814cf96ad68 /packages/contracts
parent652cf7a976444224b45e6271201ef9213a7059bd (diff)
downloaddexon-0x-contracts-e480e08aa44b3af0ef506278ce2018f8659e5971.tar
dexon-0x-contracts-e480e08aa44b3af0ef506278ce2018f8659e5971.tar.gz
dexon-0x-contracts-e480e08aa44b3af0ef506278ce2018f8659e5971.tar.bz2
dexon-0x-contracts-e480e08aa44b3af0ef506278ce2018f8659e5971.tar.lz
dexon-0x-contracts-e480e08aa44b3af0ef506278ce2018f8659e5971.tar.xz
dexon-0x-contracts-e480e08aa44b3af0ef506278ce2018f8659e5971.tar.zst
dexon-0x-contracts-e480e08aa44b3af0ef506278ce2018f8659e5971.zip
Add test for external_call visibility
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/test/multisig/multi_sig_with_time_lock.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/contracts/test/multisig/multi_sig_with_time_lock.ts b/packages/contracts/test/multisig/multi_sig_with_time_lock.ts
index 8496c6442..bc1de7ed4 100644
--- a/packages/contracts/test/multisig/multi_sig_with_time_lock.ts
+++ b/packages/contracts/test/multisig/multi_sig_with_time_lock.ts
@@ -3,6 +3,7 @@ import { RevertReason } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import { LogWithDecodedArgs } from 'ethereum-types';
+import * as _ from 'lodash';
import { DummyERC20TokenContract } from '../../generated_contract_wrappers/dummy_erc20_token';
import {
@@ -53,6 +54,20 @@ describe('MultiSigWalletWithTimeLock', () => {
await blockchainLifecycle.revertAsync();
});
+ describe('external_call', () => {
+ it('should be internal', async () => {
+ const secondsTimeLocked = new BigNumber(0);
+ multiSig = await MultiSigWalletWithTimeLockContract.deployFrom0xArtifactAsync(
+ artifacts.MultiSigWalletWithTimeLock,
+ provider,
+ txDefaults,
+ owners,
+ REQUIRED_APPROVALS,
+ secondsTimeLocked,
+ );
+ expect(_.isUndefined((multiSig as any).external_call)).to.be.equal(true);
+ });
+ });
describe('confirmTransaction', () => {
let txId: BigNumber;
beforeEach(async () => {