moonbeam-foundation / moonbeam

An Ethereum-compatible smart contract parachain on Polkadot
https://moonbeam.network
GNU General Public License v3.0
920 stars 337 forks source link

Fix `S22C500` smoke test #3030

Closed Agusrodri closed 3 weeks ago

Agusrodri commented 3 weeks ago

What does it do?

Fixes the following error for staking rewards S22C500 smoke test (line 623):

📁 S22C500 rewards are given as expected
Error: Number can only safely store up to 53 bits
 - /moonbeam/node_modules/.pnpm/bn.js@5.2.1/node_modules/bn.js/lib/bn.js:6:21
 - /moonbeam/node_modules/.pnpm/bn.js@5.2.1/node_modules/bn.js/lib/bn.js:547:7
 - /suites/smoke/test-staking-rewards.ts:623:51
 - /suites/smoke/test-staking-rewards.ts:358:7
 - /suites/smoke/test-staking-rewards.ts:349:9

Also, smoke test configs for Alphanet and Stagenet were updated to use the proper endpoints at the moment of running smoke tests locally.

github-actions[bot] commented 3 weeks ago

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2260 KB (no changes) ✅

Moonbeam runtime: 2228 KB (no changes) ✅

Moonriver runtime: 2232 KB (no changes) ✅

Compared to latest release (runtime-3300)

Moonbase runtime: 2260 KB (+232 KB compared to latest release) ⚠️

Moonbeam runtime: 2228 KB (+232 KB compared to latest release) ⚠️

Moonriver runtime: 2232 KB (+240 KB compared to latest release) ⚠️

github-actions[bot] commented 3 weeks ago

Coverage Report

@@                     Coverage Diff                      @@
##           master   agustin-fix-smoke-rewards     +/-   ##
============================================================
  Coverage   79.01%                      79.01%   0.00%     
  Files         305                         305             
  Lines       88447                       88447             
============================================================
  Hits        69878                       69878             
  Misses      18569                       18569             
Files Changed Coverage

Coverage generated Tue Nov 5 21:14:48 UTC 2024