Skip to content

Commit

Permalink
fixup! test(e2e): consistent currentEpoch/nextEpoch/nextNextEpoch del…
Browse files Browse the repository at this point in the history
…egatee assertions
  • Loading branch information
mkazlauskas committed Jan 20, 2025
1 parent b8d51f8 commit 5eb960e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ const getWalletStateSnapshot = async (wallet: ObservableWallet) => {
return {
balance: { available: balanceAvailable, deposit, total: balanceTotal },
epoch: epoch.epochNo,
isStakeKeyRegistered: rewardAccount.credentialStatus === Cardano.StakeCredentialStatus.Registered,
isStakeKeyRegistered: [
Cardano.StakeCredentialStatus.Registered,
Cardano.StakeCredentialStatus.Registering
].includes(rewardAccount.credentialStatus),
publicStakeKey,
rewardAccount,
rewardsBalance,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ const getWalletStateSnapshot = async (wallet: ObservableWallet) => {
return {
balance: { available: balanceAvailable, deposit, total: balanceTotal },
epoch: epoch.epochNo,
isStakeCredentialRegistered: rewardAccount.credentialStatus === Cardano.StakeCredentialStatus.Registered,
isStakeCredentialRegistered: [
Cardano.StakeCredentialStatus.Registered,
Cardano.StakeCredentialStatus.Registering
].includes(rewardAccount.credentialStatus),
publicStakeKey,
rewardAccount,
rewardsBalance,
Expand Down

0 comments on commit 5eb960e

Please sign in to comment.