Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Jun 3, 2024
1 parent a709a44 commit 7b56269
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions scripts/publish-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ async function publishPackage(packageName, client, keypair) {
const tmpobj = tmp.dirSync({ unsafeCleanup: true });

const { modules, dependencies } = JSON.parse(
execSync(`sui move build --dump-bytecode-as-base64 --path ${path.join(__dirname, '/../move/', packageName)} --install-dir ${tmpobj.name}`, {
encoding: 'utf-8',
stdio: 'pipe', // silent the output
}),
execSync(
`sui move build --dump-bytecode-as-base64 --path ${path.join(__dirname, '/../move/', packageName)} --install-dir ${
tmpobj.name
}`,
{
encoding: 'utf-8',
stdio: 'pipe', // silent the output
},
),
);

const tx = new TransactionBlock();
Expand Down
3 changes: 2 additions & 1 deletion scripts/test-send-call.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ const { toPure, parseEnv } = require('./utils');
).data[0].parsedJson;
console.log(event);

if (hexlify(event.source_id) !== test.channel) throw new Error(`Emmited payload missmatch: ${hexlify(event.source)} != ${test.channel}`);
if (hexlify(event.source_id) !== test.channel)
throw new Error(`Emmited payload missmatch: ${hexlify(event.source)} != ${test.channel}`);
})();

0 comments on commit 7b56269

Please sign in to comment.