From 2a1c211efb9adb2fdfac27e4238e81712d15f031 Mon Sep 17 00:00:00 2001 From: Barry G Becker Date: Sun, 13 Oct 2024 06:41:12 -0700 Subject: [PATCH 1/2] #30 for RPC_URL var --- .env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 31001d8..4e5ceda 100644 --- a/.env.example +++ b/.env.example @@ -8,8 +8,8 @@ CIRCUITS_PATH="./circuits" WALLET_KEY="" # MongoDB connection string, uses in memory Mongo server if not specified MONGO_DB_CONNECTION="" -# third part yurl to polygon amoy network rpc node -THIRD_PARTY_RPC_URL="" +# url to polygon amoy network rpc node +RPC_URL="" # third party contract address in the linea test network THIRD_PARTY_CONTRACT_ADDRESS="" # third party key in hex format with matic balance From 10bb3e7490738580d694f0ba390d762c44b2201f Mon Sep 17 00:00:00 2001 From: Barry G Becker Date: Sun, 13 Oct 2024 07:13:09 -0700 Subject: [PATCH 2/2] increase max gas fee #30 --- walletSetup.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/walletSetup.ts b/walletSetup.ts index a8390dd..199add0 100644 --- a/walletSetup.ts +++ b/walletSetup.ts @@ -66,9 +66,9 @@ export function initInMemoryDataStorage({ conf.contractAddress = contractAddress; conf.url = rpcUrl; - // change here priority fees in case transaction is stuck or processing too long - // conf.maxPriorityFeePerGas = '250000000000' - 250 gwei - // conf.maxFeePerGas = '250000000000' - 250 gwei + // Increase these values to ensure the transaction is not underpriced + conf.maxPriorityFeePerGas = '30000000000' // 30 gwei + conf.maxFeePerGas = '100000000000' // 100 gwei const dataStorage = { credential: new CredentialStorage(new InMemoryDataSource()), @@ -78,7 +78,7 @@ export function initInMemoryDataStorage({ ), mt: new InMemoryMerkleTreeStorage(40), - states: new EthStateStorage(defaultEthConnectionConfig) + states: new EthStateStorage(conf) // Use the modified conf here }; return dataStorage;