|
@@ -21,6 +21,7 @@ tokenpocketBnb.getProvider= function (){
|
|
|
if(!provider){
|
|
if(!provider){
|
|
|
provider = window.ethereum;
|
|
provider = window.ethereum;
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(provider)
|
|
|
if(!chainId){
|
|
if(!chainId){
|
|
|
provider.request({method:'eth_chainId'}).then((ethChainId)=>{
|
|
provider.request({method:'eth_chainId'}).then((ethChainId)=>{
|
|
|
console.log('ethChainId:'+ethChainId)
|
|
console.log('ethChainId:'+ethChainId)
|