Skip to content

Commit 9ab1756

Browse files
committed
chore: made offerArgs an explicit argument for makeCreateAndFund handler, and using mustmatch on it
1 parent 119628c commit 9ab1756

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

contract/src/orca.flows.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ export const makeCreateAndFund = async (
5858
setValue,
5959
},
6060
seat,
61-
{ chainName },
61+
offerArgs,
6262
) => {
63+
mustMatch(offerArgs, M.splitRecord({ chainName: M.string() }));
64+
const { chainName } = offerArgs;
6365
const { give } = seat.getProposal();
6466
const [[_kw, amt]] = Object.entries(give);
6567
trace('orch', orch);
@@ -77,14 +79,14 @@ export const makeCreateAndFund = async (
7779

7880
const info = await chain.getChainInfo();
7981
trace('chain info', info);
80-
8182
const assets = await agoric.getVBankAssetInfo();
8283
trace('fetched assets:', assets);
83-
84+
8485
const localAccount = await agoric.makeAccount();
8586
trace('localAccount', localAccount);
8687

8788
const remoteAccount = await chain.makeAccount();
89+
8890
trace('remoteAccount', remoteAccount);
8991
const [localAddress, remoteAddress] = await Promise.all([
9092
localAccount.getAddress(),

0 commit comments

Comments
 (0)