File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -97,12 +97,12 @@ export default defineComponent({
9797 if (defaultCurrencyCode === CryptoCurrency .USDC ) defaultCurrencyCode = ' usdc_polygon' ;
9898 if (defaultCurrencyCode === CryptoCurrency .USDT ) defaultCurrencyCode = ' usdt_polygon' ;
9999
100- // NIM is not currency supported anymore by Moonpay.
101- const nimAddress = undefined ;
102- // const nimAddress = !config.disableNetworkInteraction
103- // // Remove spaces in NIM address, as spaces are invalid URI components
104- // ? useAddressStore().state.activeAddress?.replace(/\s/g, '')
105- // : undefined;
100+ // Note: even though NIM is not currency supported anymore by Moonpay, we have to provide the nimAddress because
101+ // our signing endpoint config.moonpay.signatureEndpoint expects it.
102+ const nimAddress = ! config .disableNetworkInteraction
103+ // Remove spaces in NIM address, as spaces are invalid URI components
104+ ? useAddressStore ().state .activeAddress ?.replace (/ \s / g , ' ' )
105+ : undefined ;
106106
107107 // Having a BTC address must be optional, so that the widget also works
108108 // for legacy or non-bitcoin-activated accounts.
You can’t perform that action at this time.
0 commit comments