Skip to content

Commit 5e4ad34

Browse files
committed
refactor: attenuate chainHub in settler
1 parent 2e08af6 commit 5e4ad34

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/fast-usdc-contract/src/exos/settler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const stateShape = harden({
142142
export const prepareSettler = (
143143
zone: Zone,
144144
{
145-
chainHub, // TODO POLA
145+
chainHub,
146146
feeConfig,
147147
forwardFunds,
148148
getNobleICA,
@@ -153,7 +153,7 @@ export const prepareSettler = (
153153
withdrawToSeat,
154154
zcf,
155155
}: {
156-
chainHub: ChainHub;
156+
chainHub: Pick<ChainHub, 'resolveAccountId'>;
157157
feeConfig: FeeConfig;
158158
forwardFunds: (tx: {
159159
txHash: EvmHash;

packages/fast-usdc-contract/src/fast-usdc.contract.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ export const contract = async (
171171
getNobleICA,
172172
vowTools: tools.vowTools,
173173
zcf,
174-
chainHub,
174+
// UNTIL we have an generic way to attenuate an Exo https://github.com/Agoric/agoric-sdk/issues/11309
175+
chainHub: { resolveAccountId: chainHub.resolveAccountId.bind(chainHub) },
175176
});
176177

177178
const zoeTools = makeZoeTools(zcf, vowTools);

0 commit comments

Comments
 (0)