From 55e0f40b775449d4dfc3c198dda42b8552de51db Mon Sep 17 00:00:00 2001 From: perekopskiy Date: Tue, 1 Feb 2022 16:05:45 +0200 Subject: [PATCH] Fmt --- sdk/zksync.js/src/remote-wallet.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sdk/zksync.js/src/remote-wallet.ts b/sdk/zksync.js/src/remote-wallet.ts index 466167fc20..7b205d6809 100644 --- a/sdk/zksync.js/src/remote-wallet.ts +++ b/sdk/zksync.js/src/remote-wallet.ts @@ -112,7 +112,7 @@ export class RemoteWallet extends AbstractWallet { const txsToSign = txs.map((tx) => { tx.tx.nonce = nonce; nonce += 1; - return {type: tx.type, ...tx.tx}; + return { type: tx.type, ...tx.tx }; }); const signedTransactions = await this.callExtSignZkSyncBatch(txsToSign); // Each transaction will have its own Ethereum signature, if it's required. @@ -133,7 +133,7 @@ export class RemoteWallet extends AbstractWallet { validFrom?: number; validUntil?: number; }): Promise { - const signed = await this.callExtSignZkSyncBatch([{type: 'Transfer', ...transfer}]); + const signed = await this.callExtSignZkSyncBatch([{ type: 'Transfer', ...transfer }]); return signed[0]; } @@ -161,7 +161,7 @@ export class RemoteWallet extends AbstractWallet { validFrom?: number; validUntil?: number; }): Promise { - const signed = await this.callExtSignZkSyncBatch([{type: 'ChangePubKey', ...changePubKey}]); + const signed = await this.callExtSignZkSyncBatch([{ type: 'ChangePubKey', ...changePubKey }]); return signed[0]; } @@ -188,7 +188,7 @@ export class RemoteWallet extends AbstractWallet { validFrom?: number; validUntil?: number; }): Promise { - const signed = await this.callExtSignZkSyncBatch([{type: 'Withdraw', ...withdraw}]); + const signed = await this.callExtSignZkSyncBatch([{ type: 'Withdraw', ...withdraw }]); return signed[0]; } @@ -217,7 +217,7 @@ export class RemoteWallet extends AbstractWallet { validFrom?: number; validUntil?: number; }): Promise { - const signed = await this.callExtSignZkSyncBatch([{type: 'ForcedExit', ...forcedExit}]); + const signed = await this.callExtSignZkSyncBatch([{ type: 'ForcedExit', ...forcedExit }]); return signed[0]; } @@ -245,7 +245,7 @@ export class RemoteWallet extends AbstractWallet { validFrom?: number; validUntil?: number; }): Promise { - return await this.callExtSignOrder({type: 'Order', ...order}); + return await this.callExtSignOrder({ type: 'Order', ...order }); } override async signSyncSwap(swap: { @@ -255,7 +255,7 @@ export class RemoteWallet extends AbstractWallet { nonce: number; fee: BigNumberish; }): Promise { - const signed = await this.callExtSignZkSyncBatch([{type: 'Swap', ...swap}]); + const signed = await this.callExtSignZkSyncBatch([{ type: 'Swap', ...swap }]); return signed[0]; } @@ -279,7 +279,7 @@ export class RemoteWallet extends AbstractWallet { fee: BigNumberish; nonce: number; }): Promise { - const signed = await this.callExtSignZkSyncBatch([{type: 'MintNFT', ...mintNFT}]); + const signed = await this.callExtSignZkSyncBatch([{ type: 'MintNFT', ...mintNFT }]); return signed[0]; } @@ -305,7 +305,7 @@ export class RemoteWallet extends AbstractWallet { validFrom?: number; validUntil?: number; }): Promise { - const signed = await this.callExtSignZkSyncBatch([{type: 'WithdrawNFT', ...withdrawNFT}]); + const signed = await this.callExtSignZkSyncBatch([{ type: 'WithdrawNFT', ...withdrawNFT }]); return signed[0]; } @@ -384,7 +384,7 @@ export class RemoteWallet extends AbstractWallet { type: 'Transfer', ...transfer }; - }) + }); const signed = await this.callExtSignZkSyncBatch(transfers); return submitSignedTransactionsBatch(this.provider, signed); }