Skip to content

Commit

Permalink
example env provided
Browse files Browse the repository at this point in the history
  • Loading branch information
PrantaDas committed Sep 14, 2024
1 parent 0a7cbf3 commit b572e98
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
MONGO_URI="mongodb://mongo:27017"
MINTFUN_COLLECTION_URL="https://mint.fun/api/mintfun/feed/free?range=24h&chain=8453"
MINTFUN_TRANSACTION_URL="https://mint.fun/api/mintfun/contract"
MONGODB_DATABASE="mintfun"
MONGODB_COLLECTION_TRANSACTION="transactions"
MONGODB_COLLECTION_ERROR="errors"
FETCH_DURATION="60"
GAS_LIMIT=""
PRIVATE_KEY=""
RPC_URL=""
2 changes: 1 addition & 1 deletion cmd/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
if err != nil {
log.Fatal("Error converting GAS_LIMIT to integer", err)
}
wallet, err := web3.NewWallet(os.Getenv("PRIVATE_KEY"), os.Getenv("RPCC_URL"), uint64(gasLimit))
wallet, err := web3.NewWallet(os.Getenv("PRIVATE_KEY"), os.Getenv("RPC_URL"), uint64(gasLimit))

if err != nil {
log.Fatal("Error creating wallet", err)
Expand Down

0 comments on commit b572e98

Please sign in to comment.