Skip to content

Commit

Permalink
feat(types): generic return for executeTx
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed May 8, 2024
1 parent 293ee58 commit 860fc7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/vats/src/localchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { AmountShape } from '@agoric/ertp';

const { Fail, bare } = assert;

/** @import {TypedJson, ResponseTo} from '@agoric/cosmic-proto'; */

/**
* @typedef {{
* system: import('./types.js').ScopedBridgeManager;
Expand Down Expand Up @@ -68,8 +70,9 @@ const prepareLocalChainAccount = zone =>
return E(allegedPurse).deposit(payment);
},
/**
* @param {import('@agoric/cosmic-proto').TypedJson<unknown>[]} messages
* @returns {Promise<import('@agoric/cosmic-proto').TypedJson[]>}
* @template {TypedJson[]} MA messages array
* @param {MA} messages
* @returns {Promise<{ [K in keyof MA]: ResponseTo<MA[K]> }>}
*/
async executeTx(messages) {
const { address, powers } = this.state;
Expand Down

0 comments on commit 860fc7a

Please sign in to comment.