Skip to content

Commit

Permalink
fixup! feat: WithdrawReward on StakingAccountHolder (WIP 3/3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Apr 30, 2024
1 parent adc4aaf commit 419812b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/orchestration/test/test-withdraw-reward.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const { Fail } = assert;
/** @type {typeof import('protobufjs').Writer} */
const Writer = pbjs.default.Writer;

test('WithdrawDelegatorReward: protobuf encoding helper', t => {
test('MsgWithdrawDelegatorReward: protobuf encoding reminder', t => {
const actual = MsgWithdrawDelegatorReward.toProtoMsg({
delegatorAddress: 'abc',
validatorAddress: 'def',
Expand All @@ -35,15 +35,6 @@ test('WithdrawDelegatorReward: protobuf encoding helper', t => {
});
});

test('WithdrawDelegatorReward: bad inputs', t => {
/** @type {any[]} */
const badInputs = [{}, { delegatorAddress: 'abc' }, { delegatorAddress: 2 }];

for (const it of badInputs) {
t.throws(() => MsgWithdrawDelegatorReward.encode(it));
}
});

/**
* XXX defined in codegen/cosmos/base/v1beta1/coin.d.ts
* but that's not exported from comsmic-proto.
Expand Down

0 comments on commit 419812b

Please sign in to comment.