@snapshot-labs/snapshot.js 0.14.6 → 0.14.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.14.6",
3
+ "version": "0.14.8",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
package/src/networks.json CHANGED
@@ -408,6 +408,20 @@
408
408
  "start": 1290,
409
409
  "logo": "ipfs://bafkreib4xhbgbhrwkmizp4d4nz3wzbpyhdm6wpz2v2pbkk7jxsgg3hdt74"
410
410
  },
411
+ "151": {
412
+ "key": "151",
413
+ "name": "Redbelly",
414
+ "shortName": "mainnet",
415
+ "chainId": 151,
416
+ "network": "mainnet",
417
+ "multicall": "0xEe43BBcC6340038130681F98d855E416F7F728e9",
418
+ "rpc": [],
419
+ "explorer": {
420
+ "url": "https://redbelly.routescan.io"
421
+ },
422
+ "start": 1908395,
423
+ "logo": "ipfs://bafkreie5mdk5shaebcec6zs5dc4722u2tn7oxvkksjy62kkjdzgnvmad7q"
424
+ },
411
425
  "157": {
412
426
  "key": "157",
413
427
  "name": "Shibarium Puppynet Testnet",
@@ -143,7 +143,7 @@ export default class RankedChoiceVoting {
143
143
  this.strategies.map((strategy, sI) => {
144
144
  return finalRound
145
145
  .filter((res) => Number(res[0]) === i + 1)
146
- .reduce((a, b) => a + b[1][1][sI], 0);
146
+ .reduce((a, b) => a + (b[1][1][sI] || 0), 0);
147
147
  })
148
148
  );
149
149
  }