Skip to content

Commit

Permalink
increase max gas fee 0xPolygonID#30
Browse files Browse the repository at this point in the history
  • Loading branch information
barrybecker4 committed Oct 13, 2024
1 parent 2a1c211 commit 10bb3e7
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 10bb3e7

Please sign in to comment.