Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Feb 1, 2022
1 parent eca77c5 commit 55e0f40
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions sdk/zksync.js/src/remote-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -133,7 +133,7 @@ export class RemoteWallet extends AbstractWallet {
validFrom?: number;
validUntil?: number;
}): Promise<SignedTransaction> {
const signed = await this.callExtSignZkSyncBatch([{type: 'Transfer', ...transfer}]);
const signed = await this.callExtSignZkSyncBatch([{ type: 'Transfer', ...transfer }]);
return signed[0];
}

Expand Down Expand Up @@ -161,7 +161,7 @@ export class RemoteWallet extends AbstractWallet {
validFrom?: number;
validUntil?: number;
}): Promise<SignedTransaction> {
const signed = await this.callExtSignZkSyncBatch([{type: 'ChangePubKey', ...changePubKey}]);
const signed = await this.callExtSignZkSyncBatch([{ type: 'ChangePubKey', ...changePubKey }]);
return signed[0];
}

Expand All @@ -188,7 +188,7 @@ export class RemoteWallet extends AbstractWallet {
validFrom?: number;
validUntil?: number;
}): Promise<SignedTransaction> {
const signed = await this.callExtSignZkSyncBatch([{type: 'Withdraw', ...withdraw}]);
const signed = await this.callExtSignZkSyncBatch([{ type: 'Withdraw', ...withdraw }]);
return signed[0];
}

Expand Down Expand Up @@ -217,7 +217,7 @@ export class RemoteWallet extends AbstractWallet {
validFrom?: number;
validUntil?: number;
}): Promise<SignedTransaction> {
const signed = await this.callExtSignZkSyncBatch([{type: 'ForcedExit', ...forcedExit}]);
const signed = await this.callExtSignZkSyncBatch([{ type: 'ForcedExit', ...forcedExit }]);
return signed[0];
}

Expand Down Expand Up @@ -245,7 +245,7 @@ export class RemoteWallet extends AbstractWallet {
validFrom?: number;
validUntil?: number;
}): Promise<Order> {
return await this.callExtSignOrder({type: 'Order', ...order});
return await this.callExtSignOrder({ type: 'Order', ...order });
}

override async signSyncSwap(swap: {
Expand All @@ -255,7 +255,7 @@ export class RemoteWallet extends AbstractWallet {
nonce: number;
fee: BigNumberish;
}): Promise<SignedTransaction> {
const signed = await this.callExtSignZkSyncBatch([{type: 'Swap', ...swap}]);
const signed = await this.callExtSignZkSyncBatch([{ type: 'Swap', ...swap }]);
return signed[0];
}

Expand All @@ -279,7 +279,7 @@ export class RemoteWallet extends AbstractWallet {
fee: BigNumberish;
nonce: number;
}): Promise<SignedTransaction> {
const signed = await this.callExtSignZkSyncBatch([{type: 'MintNFT', ...mintNFT}]);
const signed = await this.callExtSignZkSyncBatch([{ type: 'MintNFT', ...mintNFT }]);
return signed[0];
}

Expand All @@ -305,7 +305,7 @@ export class RemoteWallet extends AbstractWallet {
validFrom?: number;
validUntil?: number;
}): Promise<SignedTransaction> {
const signed = await this.callExtSignZkSyncBatch([{type: 'WithdrawNFT', ...withdrawNFT}]);
const signed = await this.callExtSignZkSyncBatch([{ type: 'WithdrawNFT', ...withdrawNFT }]);
return signed[0];
}

Expand Down Expand Up @@ -384,7 +384,7 @@ export class RemoteWallet extends AbstractWallet {
type: 'Transfer',
...transfer
};
})
});
const signed = await this.callExtSignZkSyncBatch(transfers);
return submitSignedTransactionsBatch(this.provider, signed);
}
Expand Down

0 comments on commit 55e0f40

Please sign in to comment.