aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/index.umd.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-12-01 17:13:15 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-12-01 17:15:01 +0800
commitf4e0f74a6df7b8ec89308e10757e7adc9929198f (patch)
treec571d5eddc4f097eab5d85494204a76a4e200286 /packages/instant/src/index.umd.ts
parent502e9c7be48caafd7725451789f896efdaf17dac (diff)
downloaddexon-0x-contracts-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.gz
dexon-0x-contracts-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.zst
dexon-0x-contracts-f4e0f74a6df7b8ec89308e10757e7adc9929198f.zip
feat(instant): provide a custom wallet display name
Diffstat (limited to 'packages/instant/src/index.umd.ts')
-rw-r--r--packages/instant/src/index.umd.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts
index 7391e2844..b92fa3a7c 100644
--- a/packages/instant/src/index.umd.ts
+++ b/packages/instant/src/index.umd.ts
@@ -39,6 +39,9 @@ const validateInstantRenderConfig = (config: ZeroExInstantConfig, selector: stri
if (!_.isUndefined(config.provider)) {
assert.isWeb3Provider('provider', config.provider);
}
+ if (!_.isUndefined(config.walletDisplayName)) {
+ assert.isString('walletDisplayName', config.walletDisplayName);
+ }
if (!_.isUndefined(config.shouldDisablePushToHistory)) {
assert.isBoolean('shouldDisablePushToHistory', config.shouldDisablePushToHistory);
}