Skip to content

Commit

Permalink
add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed Jul 17, 2023
1 parent 06f8db7 commit c415698
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/e2e.method.signing.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ describe('transaction and message signing [ @E2E ]', function() {
});

it('eth.accounts.sign', async function(){
this.timeout(30000);
if (process.env.GANACHE || global.window ) return

const message = 'hello';
Expand Down Expand Up @@ -603,12 +604,12 @@ describe('transaction and message signing [ @E2E ]', function() {
};

const signed = await web3.eth.accounts.signTransaction(txObject, wallet[0].privateKey);

const data = Buffer.from(signed.rawTransaction.slice(2), "hex")
const tx = TransactionFactory.fromSerializedData(data);

assert(signed.v === ('0x' + tx.v.toString('hex')));
assert(signed.r === ('0x' + tx.r.toString('hex')));
assert(signed.s === ('0x' + tx.s.toString('hex')));
});
});
});

0 comments on commit c415698

Please sign in to comment.