code review modifyupdate

This commit is contained in:
牛涛涛
2021-01-07 21:36:27 +08:00
parent aba6b84683
commit 784c443834
3 changed files with 5 additions and 25 deletions

View File

@@ -13,6 +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);