Format .js files with prettier 2

This commit is contained in:
Simon Warta 2020-05-07 12:26:36 +02:00
parent e5e29ac22b
commit 113799c886
2 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ const initMsgJade = {
async function main() {
const pen = await Secp256k1Pen.fromMnemonic(faucet.mnemonic);
const client = new SigningCosmWasmClient(httpUrl, faucet.address, signBytes => pen.sign(signBytes));
const client = new SigningCosmWasmClient(httpUrl, faucet.address, (signBytes) => pen.sign(signBytes));
const wasm = fs.readFileSync(__dirname + "/contracts/cw-erc20.wasm");
const uploadReceipt = await client.upload(wasm, codeMeta, "Upload ERC20 contract");
@ -92,7 +92,7 @@ main().then(
console.info("All done, let the coins flow.");
process.exit(0);
},
error => {
(error) => {
console.error(error);
process.exit(1);
},

View File

@ -37,7 +37,7 @@ const luxury = {
async function main() {
const pen = await Secp256k1Pen.fromMnemonic(faucet.mnemonic);
const client = new SigningCosmWasmClient(httpUrl, faucet.address, signBytes => pen.sign(signBytes));
const client = new SigningCosmWasmClient(httpUrl, faucet.address, (signBytes) => pen.sign(signBytes));
const wasm = fs.readFileSync(__dirname + "/contracts/cw-nameservice.wasm");
const uploadReceipt = await client.upload(wasm, codeMeta, "Upload Name Service code");
@ -55,7 +55,7 @@ main().then(
console.info("Done deploying nameservice instances.");
process.exit(0);
},
error => {
(error) => {
console.error(error);
process.exit(1);
},