add weth 2 eth support in crowdpooling

This commit is contained in:
牛涛涛
2021-01-08 01:59:35 +08:00
parent e51ae35704
commit 86a8f303a4
6 changed files with 38 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ import Web3 from 'web3';
export function getDefaultWeb3() {
return new Web3(process.env.RPC_NODE_URI)
}
process.env.RPC_NODE_URI="http://127.0.0.1:8545"
export class EVM {
private provider = new Web3.providers.HttpProvider(process.env.RPC_NODE_URI);