aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/assert.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-11-03 04:48:31 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-11-03 05:39:12 +0800
commit5fc2483be776cab90e7ff868b27536a85d6764c9 (patch)
tree1dedb81a97b4c57c763d4f56cb4952d5df4b586f /packages/instant/src/util/assert.ts
parentec83a1d9e735573fe51df7a5854424c0ad4101fb (diff)
downloaddexon-sol-tools-5fc2483be776cab90e7ff868b27536a85d6764c9.tar
dexon-sol-tools-5fc2483be776cab90e7ff868b27536a85d6764c9.tar.gz
dexon-sol-tools-5fc2483be776cab90e7ff868b27536a85d6764c9.tar.bz2
dexon-sol-tools-5fc2483be776cab90e7ff868b27536a85d6764c9.tar.lz
dexon-sol-tools-5fc2483be776cab90e7ff868b27536a85d6764c9.tar.xz
dexon-sol-tools-5fc2483be776cab90e7ff868b27536a85d6764c9.tar.zst
dexon-sol-tools-5fc2483be776cab90e7ff868b27536a85d6764c9.zip
feat(instant): pass in provider through props, fallback to injected provider
Diffstat (limited to 'packages/instant/src/util/assert.ts')
-rw-r--r--packages/instant/src/util/assert.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/util/assert.ts b/packages/instant/src/util/assert.ts
index 20f8ddaee..99e177993 100644
--- a/packages/instant/src/util/assert.ts
+++ b/packages/instant/src/util/assert.ts
@@ -41,7 +41,7 @@ export const assert = {
assert.isUri(`${variableName}.imageUrl`, metaData.imageUrl);
}
},
- isValidaffiliateInfo(variableName: string, affiliateInfo: AffiliateInfo): void {
+ isValidAffiliateInfo(variableName: string, affiliateInfo: AffiliateInfo): void {
assert.isETHAddressHex(`${variableName}.recipientAddress`, affiliateInfo.feeRecipient);
assert.isNumber(`${variableName}.percentage`, affiliateInfo.feePercentage);
assert.assert(