Skip to content

Commit

Permalink
chore(types): fix MsgDelegateResponse cast
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jul 24, 2024
1 parent c456d5c commit 1cb1407
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/boot/tools/supports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import type { EProxy, RemotableBrand } from '@endo/eventual-send';
import type { BootstrapRootObject } from '@agoric/vats/src/core/lib-boot.js';
import type { SwingsetController } from '@agoric/swingset-vat/src/controller/controller.js';
import type { EconomyBootstrapPowers } from '@agoric/inter-protocol/src/proposals/econ-behaviors.js';
import type { JsonSafe } from '@agoric/cosmic-proto';
import type { MsgDelegateResponse } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js';
import { icaMocks, protoMsgMocks } from './ibc/mocks.js';

const trace = makeTracer('BSTSupport', false);
Expand Down Expand Up @@ -498,7 +500,7 @@ export const makeSwingsetTestKit = async (
// this results in `syscall.callNow failed: device.invoke failed, see logs for details`
throw Error('simulated packet timeout');
}
return /** @type {JsonSafe<MsgDelegateResponse>} */ {};
return {} as JsonSafe<MsgDelegateResponse>;
}
// returns one empty object per message unless specified
default:
Expand Down

0 comments on commit 1cb1407

Please sign in to comment.