aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/src/utils
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-16 05:22:48 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-10-16 05:22:48 +0800
commit38b146c395429f860f57fa1865e01175eee39e62 (patch)
tree19fea9dc74f5fb0b1b8212a65f3274b94df31d0a /packages/contract-wrappers/src/utils
parente3af06ab107f98d4ca4a195da05d808370b56bb4 (diff)
downloaddexon-0x-contracts-38b146c395429f860f57fa1865e01175eee39e62.tar
dexon-0x-contracts-38b146c395429f860f57fa1865e01175eee39e62.tar.gz
dexon-0x-contracts-38b146c395429f860f57fa1865e01175eee39e62.tar.bz2
dexon-0x-contracts-38b146c395429f860f57fa1865e01175eee39e62.tar.lz
dexon-0x-contracts-38b146c395429f860f57fa1865e01175eee39e62.tar.xz
dexon-0x-contracts-38b146c395429f860f57fa1865e01175eee39e62.tar.zst
dexon-0x-contracts-38b146c395429f860f57fa1865e01175eee39e62.zip
Add OrThrow suffix to getContractAddressesForNetwork
Diffstat (limited to 'packages/contract-wrappers/src/utils')
-rw-r--r--packages/contract-wrappers/src/utils/contract_addresses.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contract-wrappers/src/utils/contract_addresses.ts b/packages/contract-wrappers/src/utils/contract_addresses.ts
index cd0d31308..98967c52d 100644
--- a/packages/contract-wrappers/src/utils/contract_addresses.ts
+++ b/packages/contract-wrappers/src/utils/contract_addresses.ts
@@ -1,4 +1,4 @@
-import { ContractAddresses, getContractAddressesForNetwork, NetworkId } from '@0xproject/contract-addresses';
+import { ContractAddresses, getContractAddressesForNetworkOrThrow, NetworkId } from '@0xproject/contract-addresses';
import * as _ from 'lodash';
/**
@@ -11,5 +11,5 @@ export function _getDefaultContractAddresses(networkId: number): ContractAddress
`No default contract addresses found for the given network id (${networkId}). If you want to use ContractWrappers on this network, you must manually pass in the contract address(es) to the constructor.`,
);
}
- return getContractAddressesForNetwork(networkId);
+ return getContractAddressesForNetworkOrThrow(networkId);
}