Skip to content

Commit d372bc5

Browse files
committed
test: fix the test cases for eth recover consolidation
ticket: WIN-5700
1 parent dce165e commit d372bc5

File tree

1 file changed

+3
-2
lines changed
  • modules/sdk-coin-eth/test/unit

1 file changed

+3
-2
lines changed

modules/sdk-coin-eth/test/unit/eth.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ describe('ETH:', function () {
11091109
should.exist(consolidationResult);
11101110
const unsignedBuilConsolidation = consolidationResult as UnsignedBuilConsolidation;
11111111
unsignedBuilConsolidation.should.have.property('transactions');
1112-
unsignedBuilConsolidation.transactions.should.have.length(2);
1112+
unsignedBuilConsolidation.transactions.should.have.length(1);
11131113

11141114
const output = unsignedBuilConsolidation.transactions[0] as MPCSweepTxs;
11151115
output.should.have.property('txRequests');
@@ -1162,6 +1162,7 @@ describe('ETH:', function () {
11621162
gasLimit: 200000, // Gas Limit
11631163
eip1559: { maxFeePerGas: 20000000000, maxPriorityFeePerGas: 10000000000 }, // Max Fee Per Gas and Max Priority Fee Per Gas
11641164
isTss: true,
1165+
walletContractAddress: '123', // Wrong wallet address so that we can skip v5 address generation
11651166
replayProtectionOptions: {
11661167
chain: '42',
11671168
hardfork: 'london',
@@ -1173,7 +1174,7 @@ describe('ETH:', function () {
11731174
should.exist(consolidationResult);
11741175
const unsignedBuilConsolidation = consolidationResult as UnsignedBuilConsolidation;
11751176
unsignedBuilConsolidation.should.have.property('transactions');
1176-
unsignedBuilConsolidation.transactions.should.have.length(2);
1177+
unsignedBuilConsolidation.transactions.should.have.length(1);
11771178

11781179
const output = unsignedBuilConsolidation.transactions[0] as MPCSweepTxs;
11791180
output.should.have.property('txRequests');

0 commit comments

Comments
 (0)