mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
96929d99c0
What - modify `ui/app/helpers/utils/transactions.util.js` and `ui/lib/account-link.js` to strip trailing slashes if they are present. - added relevant tests not just for the new scenario, but also the general scenarios for these functions, as there previously was no test coverage for these two functions. Why - Current behaviour, when user enters a block explorer URL when configuring a custom RPC, and that block explorer URL contains a trailing `/`. - e.g. `https://block.explorer/` - this results in a double-slash (`//`) in the transaction and account URLs generated by MetaMask. - e.g. `https://block.explorer/tx/0xabcd...`, `https://block.explorer/account/0xabcd...` - This needs to be handled using a router redirect on the server of the block explorer, and this changes would avoid that requirement. |
||
---|---|---|
.. | ||
common.util.js | ||
common.util.test.js | ||
confirm-tx.util.js | ||
confirm-tx.util.test.js | ||
conversion-util.js | ||
conversion-util.test.js | ||
conversions.util.js | ||
fetch-with-cache.js | ||
fetch-with-cache.test.js | ||
formatters.js | ||
gas-time-estimates.util.js | ||
i18n-helper.js | ||
i18n-helper.test.js | ||
metametrics.util.js | ||
switch-direction.js | ||
token-util.js | ||
transactions.util.js | ||
transactions.util.test.js | ||
util.js | ||
util.test.js |