Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#30 for RPC_URL var #31

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions walletSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<W3CCredential>()),
Expand All @@ -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;
Expand Down