From 0242e096730bc3857cd88f76156f9f55e727e210 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Thu, 18 Jul 2024 14:52:28 -0700 Subject: [PATCH] fix(types): deposit accepts ERef --- packages/vats/src/localchain.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/vats/src/localchain.js b/packages/vats/src/localchain.js index b9aae359835..9ece0eb8c98 100644 --- a/packages/vats/src/localchain.js +++ b/packages/vats/src/localchain.js @@ -115,12 +115,15 @@ export const prepareLocalChainAccountKit = (zone, { watch }) => const purse = E(bank).getPurse(brand); return E(purse).getCurrentAmount(); }, + + // TODO The payment parameter type below should be Payment<'nat'>. + // https://github.com/Agoric/agoric-sdk/issues/9828 /** * Deposit a payment into the bank purse that matches the alleged brand. * This is safe, since even if the payment lies about its brand, ERTP * will reject spoofed payment objects when depositing into a purse. * - * @param {Payment<'nat'>} payment + * @param {ERef>} payment * @param {Pattern} [optAmountShape] throws if the Amount of the Payment * does not match the provided Pattern * @returns {PromiseVow>}