Skip to content

Commit

Permalink
v10.10.2: do not resetCache implicit upon setting new provider(s) as …
Browse files Browse the repository at this point in the history
…this prevents setting providers for multiple blockchains
  • Loading branch information
10xSebastian committed May 2, 2023
1 parent 5bd7de1 commit c697d3d
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 31 deletions.
4 changes: 0 additions & 4 deletions dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,6 @@ const getProviders = async (blockchain)=>{

const setProvider = (blockchain, provider)=>{

resetCache();

if(supported.evm.includes(blockchain)) {


Expand All @@ -401,8 +399,6 @@ const setProvider = (blockchain, provider)=>{

const setProviderEndpoints = (blockchain, endpoints, detectFastest)=>{

resetCache();

if(supported.evm.includes(blockchain)) {


Expand Down
4 changes: 0 additions & 4 deletions dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,6 @@ const getProviders = async (blockchain)=>{

const setProvider = (blockchain, provider)=>{

resetCache();

if(supported.evm.includes(blockchain)) {


Expand All @@ -504,8 +502,6 @@ const setProvider = (blockchain, provider)=>{

const setProviderEndpoints = (blockchain, endpoints, detectFastest)=>{

resetCache();

if(supported.evm.includes(blockchain)) {


Expand Down
4 changes: 0 additions & 4 deletions dist/esm/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ const getProviders = async (blockchain)=>{

const setProvider = (blockchain, provider)=>{

resetCache();

if(supported.evm.includes(blockchain)) ; else if(supported.solana.includes(blockchain)) {


Expand All @@ -279,8 +277,6 @@ const setProvider = (blockchain, provider)=>{

const setProviderEndpoints = (blockchain, endpoints, detectFastest)=>{

resetCache();

if(supported.evm.includes(blockchain)) ; else if(supported.solana.includes(blockchain)) {


Expand Down
4 changes: 0 additions & 4 deletions dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,6 @@

const setProvider = (blockchain, provider)=>{

resetCache();

if(supported.evm.includes(blockchain)) {


Expand All @@ -408,8 +406,6 @@

const setProviderEndpoints = (blockchain, endpoints, detectFastest)=>{

resetCache();

if(supported.evm.includes(blockchain)) {


Expand Down
4 changes: 0 additions & 4 deletions dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,6 @@

const setProvider = (blockchain, provider)=>{

resetCache();

if(supported.evm.includes(blockchain)) {


Expand All @@ -510,8 +508,6 @@

const setProviderEndpoints = (blockchain, endpoints, detectFastest)=>{

resetCache();

if(supported.evm.includes(blockchain)) {


Expand Down
4 changes: 0 additions & 4 deletions dist/umd/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@

const setProvider = (blockchain, provider)=>{

resetCache();

if(supported.evm.includes(blockchain)) ; else if(supported.solana.includes(blockchain)) {


Expand All @@ -285,8 +283,6 @@

const setProviderEndpoints = (blockchain, endpoints, detectFastest)=>{

resetCache();

if(supported.evm.includes(blockchain)) ; else if(supported.solana.includes(blockchain)) {


Expand Down
2 changes: 1 addition & 1 deletion package.evm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-client-evm",
"moduleName": "Web3Client",
"version": "10.10.1",
"version": "10.10.2",
"description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.",
"main": "dist/umd/index.evm.js",
"module": "dist/esm/index.evm.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-client",
"moduleName": "Web3Client",
"version": "10.10.1",
"version": "10.10.2",
"description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.solana.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-client-solana",
"moduleName": "Web3Client",
"version": "10.10.1",
"version": "10.10.2",
"description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.",
"main": "dist/umd/index.solana.js",
"module": "dist/esm/index.solana.js",
Expand Down
4 changes: 0 additions & 4 deletions src/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ const getProviders = async (blockchain)=>{

const setProvider = (blockchain, provider)=>{

resetCache()

if(supported.evm.includes(blockchain)) {

/*#if _EVM
Expand Down Expand Up @@ -125,8 +123,6 @@ const setProvider = (blockchain, provider)=>{

const setProviderEndpoints = (blockchain, endpoints, detectFastest)=>{

resetCache()

if(supported.evm.includes(blockchain)) {

/*#if _EVM
Expand Down

0 comments on commit c697d3d

Please sign in to comment.