Skip to content

Commit d402c3a

Browse files
committed
v9.8.11: if id is not provided, default to ethereum
1 parent 6eba0f1 commit d402c3a

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

dist/esm/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/umd/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@depay/web3-blockchains",
33
"moduleName": "Web3Blockchains",
4-
"version": "9.8.10",
4+
"version": "9.8.11",
55
"description": "JavaScript library containing aggregated information and abstractions for web3 blockchains.",
66
"main": "dist/umd/index.js",
77
"module": "dist/esm/index.js",

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const all = [
2626

2727
const findById = function (id) {
2828
let fixedId = id
29+
if(!fixedId){ fixedId = '0x1' }
2930
if (fixedId.match('0x0')) {
3031
// remove leading 0
3132
fixedId = fixedId.replace(/0x0+/, '0x')

0 commit comments

Comments
 (0)