@stardust-collective/dag4-xchain-ethereum
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -54,3 +54,4 @@ "use strict"; | ||
})); | ||
const provider = ethers_1.ethers.getDefaultProvider(null, { ethers: this.infuraProjectId }); | ||
//const provider = ethers.getDefaultProvider(null, { ethers: this.infuraProjectId, quorum: 1}); | ||
const provider = new ethers_1.ethers.providers.InfuraProvider(null, this.infuraProjectId); | ||
const ethBalance = await provider.getBalance(address); | ||
@@ -57,0 +58,0 @@ const ethBalanceNum = ethers_1.FixedNumber.fromValue(ethers_1.BigNumber.from(ethBalance), 18).toUnsafeFloat(); |
@@ -29,3 +29,4 @@ import { BigNumber, ethers, FixedNumber } from 'ethers'; | ||
})); | ||
const provider = ethers.getDefaultProvider(null, { ethers: this.infuraProjectId }); | ||
//const provider = ethers.getDefaultProvider(null, { ethers: this.infuraProjectId, quorum: 1}); | ||
const provider = new ethers.providers.InfuraProvider(null, this.infuraProjectId); | ||
const ethBalance = await provider.getBalance(address); | ||
@@ -32,0 +33,0 @@ const ethBalanceNum = FixedNumber.fromValue(BigNumber.from(ethBalance), 18).toUnsafeFloat(); |
{ | ||
"name": "@stardust-collective/dag4-xchain-ethereum", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Cross chain communication with Ethereum", | ||
@@ -5,0 +5,0 @@ "author": "Frank Fox", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
52552
1145