diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-12-01 17:13:15 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-12-01 17:15:01 +0800 |
commit | f4e0f74a6df7b8ec89308e10757e7adc9929198f (patch) | |
tree | c571d5eddc4f097eab5d85494204a76a4e200286 /packages/instant/src/index.umd.ts | |
parent | 502e9c7be48caafd7725451789f896efdaf17dac (diff) | |
download | dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.gz dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.bz2 dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.lz dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.xz dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.zst dexon-sol-tools-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.ts | 3 |
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); } |