Skip to content

Commit

Permalink
fixup! chore(fast-usdc): use an arg for each evidence property
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Dec 3, 2024
1 parent f28ce21 commit a054e48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/fast-usdc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@endo/far": "^1.1.9",
"@endo/init": "^1.1.7",
"@endo/marshal": "^1.6.2",
"@endo/nat": "^5.0.13",
"@endo/pass-style": "^1.4.7",
"@endo/patterns": "^1.4.7",
"@endo/promise-kit": "^1.1.8",
Expand Down
2 changes: 2 additions & 0 deletions packages/fast-usdc/src/cli/operator-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ import { INVITATION_MAKERS_DESC } from '../exos/transaction-feed.js';
import { CctpTxEvidenceShape } from '../type-guards.js';
import { outputActionAndHint } from './bridge-action.js';

/** @param {string} arg */
const parseNat = arg => {
const n = Nat(BigInt(arg));
return n;
};

/** @param {string} arg */
const parseHex = arg => {
if (!arg.startsWith('0x')) throw new InvalidArgumentError('not a hex string');
return arg;
Expand Down

0 comments on commit a054e48

Please sign in to comment.