diff --git a/packages/orchestration/test/test-withdraw-reward.js b/packages/orchestration/test/test-withdraw-reward.js index 8b4012858757..155e1aa9d137 100644 --- a/packages/orchestration/test/test-withdraw-reward.js +++ b/packages/orchestration/test/test-withdraw-reward.js @@ -136,9 +136,13 @@ const makeScenario = () => { const simulate = { '/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward': _m => { + const rewards = Object.values(delegations).map(({ denom, amount }) => ({ + denom, + amount: `${Number(amount) / 100}`, + })); /** @type {MsgWithdrawDelegatorRewardResponse} */ // @ts-expect-error type says coins: but code says amount: - const response = { amount: Object.values(delegations) }; + const response = { amount: rewards }; return txEncode( response, @@ -237,7 +241,7 @@ test('withdraw rewards from staking account holder', async t => { const { helper } = make(account, storageNode, account.getAccountAddress()); const { validator } = scenario1; const actual = await E(helper).withdrawReward(validator); - t.deepEqual(actual, [{ denom: 'ustake', value: 200n }]); + t.deepEqual(actual, [{ denom: 'ustake', value: 2n }]); }); test(`delegate; withdraw rewards`, async t => { @@ -271,7 +275,7 @@ test(`delegate; withdraw rewards`, async t => { const seat = E(zoe).offer(toWithdraw); const result = await E(seat).getOfferResult(); - t.deepEqual(result, [{ denom: 'ustake', value: 200n }]); + t.deepEqual(result, [{ denom: 'ustake', value: 2n }]); } });