Skip to content

Commit

Permalink
fix: lint failing on typechain and flaky unit test in CI
Browse files Browse the repository at this point in the history
Ticket: BG-46843
  • Loading branch information
Karan committed Apr 25, 2022
1 parent 3af8741 commit ae7724e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 41 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
typechain
43 changes: 2 additions & 41 deletions test/walletSimple.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,19 +568,6 @@ coins.forEach(
privateKeyForAccount(accounts[0])
);

console.log(
'ExpectSuccess ' +
round +
': ' +
amount +
'ETH, seqId: ' +
sequenceId +
', operationHash: ' +
operationHash.toString('hex') +
', sig: ' +
helpers.serializeSignature(sig)
);

const destinationStartBalance = await web3.eth.getBalance(
destinationAccount
);
Expand Down Expand Up @@ -640,19 +627,6 @@ coins.forEach(
privateKeyForAccount(accounts[0])
);

console.log(
'ExpectFail ' +
round +
': ' +
amount +
'ETH, seqId: ' +
sequenceId +
', operationHash: ' +
operationHash.toString('hex') +
', sig: ' +
helpers.serializeSignature(sig)
);

const destinationStartBalance = await web3.eth.getBalance(
destinationAccount
);
Expand Down Expand Up @@ -710,18 +684,6 @@ coins.forEach(
privateKeyForAccount(accounts[5 + (round % 5)])
);

console.log(
'ExpectFail ' +
round +
': ' +
amount +
'ETH, seqId: ' +
sequenceId +
', operationHash: ' +
operationHash.toString('hex') +
', sig: ' +
helpers.serializeSignature(sig)
);
const destinationStartBalance = await web3.eth.getBalance(
destinationAccount
);
Expand Down Expand Up @@ -913,7 +875,7 @@ coins.forEach(
toAddress: accounts[2],
amount: 55,
data: 'aa',
expireTime: Math.floor(new Date().getTime() / 1000) - 100,
expireTime: Math.floor(new Date().getTime() / 1000) - 100000,
sequenceId: sequenceId
};

Expand Down Expand Up @@ -1426,7 +1388,7 @@ coins.forEach(
wallet: wallet,
recipients: [accounts[2]],
values: [55],
expireTime: Math.floor(new Date().getTime() / 1000) - 100,
expireTime: Math.floor(new Date().getTime() / 1000) - 100000,
sequenceId: sequenceId
};

Expand Down Expand Up @@ -2599,7 +2561,6 @@ coins.forEach(
const destinationStartBalance = await web3.eth.getBalance(
reentryInstance.address
);
// console.log("destination start balance", destinationStartBalance);
await reentryInstance.sendMultiSig(
wallet.address,
toAddress,
Expand Down

0 comments on commit ae7724e

Please sign in to comment.