Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add done function to ganache skip
  • Loading branch information
spacesailor24 committed Jul 14, 2021
commit 83a7fd81d6c0585ca383fc4becb13cffc567b45c
16 changes: 8 additions & 8 deletions test/e2e.method.signing.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describe('transaction and message signing [ @E2E ]', function() {
assert(receipt.status === true);
});

it('accounts.signTransaction, (with callback, nonce not specified)', function(donedone){
it('accounts.signTransaction, (with callback, nonce not specified)', function(done){
// ganache does not support eth_signTransaction
if (process.env.GANACHE || global.window ) {
done();
Expand All @@ -150,7 +150,7 @@ describe('transaction and message signing [ @E2E ]', function() {
});
});

it('accounts.signTransaction, (EIP-2930, accessList specified)', function(donedone){
it('accounts.signTransaction, (EIP-2930, accessList specified)', function(done){
// ganache does not support eth_signTransaction
if (process.env.GANACHE || global.window ) {
done();
Expand All @@ -174,7 +174,7 @@ describe('transaction and message signing [ @E2E ]', function() {
});
});

it('accounts.signTransaction, (EIP-2930, type 1 specified)', function(donedone){
it('accounts.signTransaction, (EIP-2930, type 1 specified)', function(done){
// ganache does not support eth_signTransaction
if (process.env.GANACHE || global.window ) {
done();
Expand All @@ -198,7 +198,7 @@ describe('transaction and message signing [ @E2E ]', function() {
});
});

it('accounts.signTransaction, (EIP-1559, maxFeePerGas and maxPriorityFeePerGas specified)', function(donedone){
it('accounts.signTransaction, (EIP-1559, maxFeePerGas and maxPriorityFeePerGas specified)', function(done){
// ganache does not support eth_signTransaction
if (process.env.GANACHE || global.window ) {
done();
Expand All @@ -223,7 +223,7 @@ describe('transaction and message signing [ @E2E ]', function() {
});
});

it('accounts.signTransaction, (EIP-1559, type 2 specified)', function(donedone){
it('accounts.signTransaction, (EIP-1559, type 2 specified)', function(done){
// ganache does not support eth_signTransaction
if (process.env.GANACHE || global.window ) {
done();
Expand All @@ -247,7 +247,7 @@ describe('transaction and message signing [ @E2E ]', function() {
});
});

it('accounts.signTransaction, (EIP-1559, maxFeePerGas and accessList specified)', function(donedone){
it('accounts.signTransaction, (EIP-1559, maxFeePerGas and accessList specified)', function(done){
// ganache does not support eth_signTransaction
if (process.env.GANACHE || global.window ) {
done();
Expand Down Expand Up @@ -554,9 +554,9 @@ describe('transaction and message signing [ @E2E ]', function() {

const recovered = await web3.eth.personal.ecRecover(message, signature);
assert.equal(accounts[1].toLowerCase(), recovered.toLowerCase());
})done;
});

it('eth.accounts.sign', async function(){
it('eth.accounts.sign', async function(done){
if (process.env.GANACHE || global.window ) {
done();
return
Expand Down