Skip to content

Commit

Permalink
Fixed eth-utils.js for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshpw committed Aug 20, 2024
1 parent cb7dfd0 commit 86f72d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ yarn-error.log*
.cosine
yarn.lock
test.js
.vscode
.vscode
Dockerfile
fly.toml
5 changes: 2 additions & 3 deletions utils-eth.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,9 @@ const tokenAbiForErc20 = [
}
]

// ⚠️ To be Fixed
function _getEthProvider(network) {
return new JsonRpcProvider("https://node.ghostnet.etherlink.com");
// return new JsonRpcProvider("https://eth-sepolia.blockscout.com");
const rpcEndpoint = network.includes("test") ? "https://node.ghostnet.etherlink.com" : "https://node.mainnet.etherlink.com";
return new JsonRpcProvider(rpcEndpoint);
}

// ⚠️ To be Implemented
Expand Down

0 comments on commit 86f72d8

Please sign in to comment.