interbtc-api icon indicating copy to clipboard operation
interbtc-api copied to clipboard

Add unit test to check escrow get rewards calls correct pallet

Open bvotteler opened this issue 3 years ago • 0 comments

We introduced a bug when refactoring some work as getting staked rewards called the incorrect palette’s withdrawRewards() function (ie. escrow rather than escrowAnnuity).

The method making the call: EscrowAPI.buildWithdrawRewardsExtrinsic()

Add a unit test that checks the call is made for the right pallet.

bvotteler avatar Dec 21 '22 11:12 bvotteler