Skip to content

Commit

Permalink
Fix S22C500 smoke test (#3030)
Browse files Browse the repository at this point in the history
* fix S22C500

* use proper endpoints

* update stagenet endpoints

* fmt
  • Loading branch information
Agusrodri authored Nov 5, 2024
1 parent 5dba038 commit e635b34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
20 changes: 8 additions & 12 deletions test/moonwall.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,17 @@
{
"name": "ethers",
"type": "ethers",
"endpoints": ["wss://wss.api.moondev.network"]
"endpoints": ["wss://stagenet-unlimited.api.moondev.network"]
},
{
"name": "viem",
"type": "viem",
"endpoints": ["wss://wss.api.moondev.network"]
"endpoints": ["wss://stagenet-unlimited.api.moondev.network"]
},
{
"name": "para",
"type": "polkadotJs",
"endpoints": ["wss://wss.api.moondev.network"],
"endpoints": ["wss://stagenet-unlimited.api.moondev.network"],
"rpc": {
"moon": {
"isBlockFinalized": {
Expand All @@ -172,9 +172,7 @@
{
"name": "relay",
"type": "polkadotJs",
"endpoints": [
"wss://deo-moon-moondev-1-stagenet-relay-rpc-1.rv.moondev.network "
]
"endpoints": ["wss://stagenet-relay.api.moondev.network"]
}
]
},
Expand Down Expand Up @@ -312,17 +310,17 @@
{
"name": "ethers",
"type": "ethers",
"endpoints": ["wss://wss.api.moonbase.moonbeam.network"]
"endpoints": ["wss://trace.api.moonbase.moonbeam.network"]
},
{
"name": "viem",
"type": "viem",
"endpoints": ["wss://wss.api.moonbase.moonbeam.network"]
"endpoints": ["wss://trace.api.moonbase.moonbeam.network"]
},
{
"name": "para",
"type": "polkadotJs",
"endpoints": ["wss://wss.api.moonbase.moonbeam.network"],
"endpoints": ["wss://trace.api.moonbase.moonbeam.network"],
"rpc": {
"moon": {
"isBlockFinalized": {
Expand All @@ -341,9 +339,7 @@
{
"name": "relay",
"type": "polkadotJs",
"endpoints": [
"wss://frag-moonbase-relay-rpc-ws.g.moonbase.moonbeam.network"
]
"endpoints": ["wss://relay.api.moonbase.moonbeam.network"]
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions test/suites/smoke/test-staking-rewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -612,15 +612,15 @@ describeSuite({
// calculate total staking reward
const firstBlockRewardedEvents =
await payment.delayedPayoutRound.firstBlockApi.query.system.events();
const reservedInflation = new BN(0);
let reservedInflation = new BN(0);
for (const { phase, event } of firstBlockRewardedEvents) {
if (!phase.isInitialization) {
continue;
}
const eventTypes = payment.delayedPayoutRound.firstBlockApi.events;
// only deduct parachainBondReward if it was transferred (event must exist)
if (eventTypes.parachainStaking.InflationDistributed.is(event)) {
reservedInflation.addn(event.data.value.toNumber());
reservedInflation = reservedInflation.add(new BN(event.data.value.toString()));
}
}

Expand Down

0 comments on commit e635b34

Please sign in to comment.