Skip to content

Commit

Permalink
chore: ChainAddress.value
Browse files Browse the repository at this point in the history
- fixes changed parameter from #9662
- improves test to print delegate offer result error on failure
  • Loading branch information
0xpatrickdev committed Jul 10, 2024
1 parent 7ec7303 commit 4087da7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion multichain-testing/test/stake-ica.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const stakeScenario = test.macro(async (t, scenario: StakeIcaScenario) => {
t.truthy(validatorAddress, 'found a validator to delegate to');
t.log({ validatorAddress }, 'found a validator to delegate to');
const validatorChainAddress = {
address: validatorAddress,
value: validatorAddress,
chainId: scenario.chainId,
encoding: 'bech32',
};
Expand All @@ -155,6 +155,19 @@ const stakeScenario = test.macro(async (t, scenario: StakeIcaScenario) => {
});
t.true(_delegateOfferResult, 'delegate payouts (none) returned');

const latestWalletUpdate = await vstorageClient.queryData(
`published.wallet.${wallets[scenario.wallet]}`,
);
t.log('latest wallet update', latestWalletUpdate);
t.like(
latestWalletUpdate.status,
{
id: delegateOfferId,
error: undefined,
numWantsSatisfied: 1,
},
`${scenario.chain} delegate offer satisfied without errors`,
);
// query remote chain to verify delegations
const { delegation_responses } = await retryUntilCondition(
() => queryClient.queryDelegations(address),
Expand Down

0 comments on commit 4087da7

Please sign in to comment.