Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
devDeps: ganache-core@^2.7.0->^2.13.2 -> [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Apr 18, 2024
1 parent 98b22f3 commit 9d9306b
Show file tree
Hide file tree
Showing 5 changed files with 278 additions and 3,750 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
],
"license": "MIT",
"resolutions": {
"ganache-core/web3-provider-engine/eth-sig-util/ethereumjs-abi": "npm:[email protected]",
"@cypress/request/qs": "6.10.4",
"ganache-core/**/elliptic": "^6.5.2"
"@cypress/request/qs": "6.10.4"
},
"dependencies": {
"@cypress/request": "^3.0.0",
Expand Down Expand Up @@ -59,7 +57,7 @@
"browserify": "^16.5.0",
"eslint": "^6.2.0",
"ethjs": "^0.3.6",
"ganache-core": "^2.7.0",
"ganache-cli": "6.12.2",
"tape": "^4.4.0"
},
"browser": {
Expand Down
4 changes: 2 additions & 2 deletions test/cache.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const test = require('tape')
const series = require('async/series')
const createGanacheProvider = require('ganache-core').provider
const createGanacheProvider = require('ganache-cli').provider
const ProviderEngine = require('../index.js')
const FixtureProvider = require('../subproviders/fixture.js')
const CacheProvider = require('../subproviders/cache.js')
Expand Down Expand Up @@ -198,7 +198,7 @@ function cacheTest(label, payloads, shouldHitCacheOnSecondRequest){
},
eth_getStorageAt: '0x00000000000000000000000000000000000000000000000000000000deadbeef',
}))

// handle dummy block
const ganacheProvider = createGanacheProvider()
var blockProvider = injectMetrics(new ProviderSubprovider(ganacheProvider))
Expand Down
6 changes: 3 additions & 3 deletions test/inflight-cache.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const test = require('tape')
const asyncParallel = require('async/parallel')
const asyncSeries = require('async/series')
const createGanacheProvider = require('ganache-core').provider
const createGanacheProvider = require('ganache-cli').provider
const ProviderEngine = require('../index.js')
const FixtureProvider = require('../subproviders/fixture.js')
const InflightCacheProvider = require('../subproviders/inflight-cache.js')
Expand Down Expand Up @@ -102,7 +102,7 @@ function inflightTest(label, payloads, shouldHitCacheOnSecondRequest){

t.equal(handlingProvider.getWitnessed(method).length, 1, 'handlingProvider did see "'+method+'"')
t.equal(handlingProvider.getHandled(method).length, 1, 'handlingProvider did handle "'+method+'"')

} else {

t.equal(cacheProvider.getWitnessed(method).length, 2, 'cacheProvider did see "'+method+'"')
Expand Down Expand Up @@ -136,4 +136,4 @@ function inflightTest(label, payloads, shouldHitCacheOnSecondRequest){

}

function noop(){}
function noop(){}
4 changes: 2 additions & 2 deletions test/util/ganache.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { provider } = require('ganache-core')
const { provider } = require('ganache-cli')
const ProviderSubprovider = require('../../subproviders/provider')


Expand All @@ -10,4 +10,4 @@ class GanacheProvider extends ProviderSubprovider {

}

module.exports = GanacheProvider
module.exports = GanacheProvider
Loading

0 comments on commit 9d9306b

Please sign in to comment.