Skip to content

Commit

Permalink
parseInt from ENV var (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyonur authored Feb 6, 2023
1 parent 7887607 commit c667f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contract-examples/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "./tasks.ts"
// HardHat users must populate these environment variables in order to connect to their subnet-evm instance
// Since the blockchainID is not known in advance, there's no good default to use and we use the C-Chain here.
var local_rpc_uri = process.env.RPC_URI || "http://127.0.0.1:9650/ext/bc/C/rpc"
var local_chain_id = process.env.CHAIN_ID || 99999
var local_chain_id = parseInt(process.env.CHAIN_ID,10) || 99999

export default {
solidity: {
Expand Down

0 comments on commit c667f95

Please sign in to comment.