Skip to content

Commit

Permalink
fix(a3p): replace JSON stringify mnemonic from q to jq
Browse files Browse the repository at this point in the history
- Address review comments from Agoric#10123
- Comment: Agoric#10123 (comment)
  • Loading branch information
Jorge-Lopes committed Sep 25, 2024
1 parent 9414d96 commit 22bcdbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions a3p-integration/proposals/z:acceptance/exitOffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const badUsage = () => {
throw reason;
};

const { stringify: q } = JSON;
const { stringify: jq } = JSON;
// limited to JSON data: no remotables/promises; no undefined.
const toCapData = data => ({ body: `#${q(data)}`, slots: [] });
const toCapData = data => ({ body: `#${jq(data)}`, slots: [] });

const { entries } = Object;
/**
Expand Down Expand Up @@ -64,7 +64,7 @@ const withTempFile = async (tail, fn) => {

const doAction = async (action, from) => {
await withTempFile('offer.json', async tmpOffer => {
await writeFile(tmpOffer, q(toCapData(action)));
await writeFile(tmpOffer, jq(toCapData(action)));

const out = await showAndRun('agoric', [
'wallet',
Expand Down

0 comments on commit 22bcdbf

Please sign in to comment.