From b7a9ed393e54eb4262d4244c38d0c8cde2302e5a Mon Sep 17 00:00:00 2001 From: 0xPatrick Date: Wed, 10 Jul 2024 13:21:21 -0400 Subject: [PATCH] chore: ChainAddress.value - fixes changed parameter from #9662 - improves test to print delegate offer result error on failure --- multichain-testing/test/stake-ica.test.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/multichain-testing/test/stake-ica.test.ts b/multichain-testing/test/stake-ica.test.ts index 1746e4f0194..06e36bbc611 100644 --- a/multichain-testing/test/stake-ica.test.ts +++ b/multichain-testing/test/stake-ica.test.ts @@ -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', }; @@ -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),