Skip to content

Commit

Permalink
Fix mode
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed May 27, 2024
1 parent 3637268 commit 2d1cc15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ export const RPC_CONFIG: Record<Chain, RpcConfig> = {
url: RPC_FORCE_URL || process.env.MODE_RPC_URL || 'https://mainnet.mode.network',
transaction: {
...defaultTransactionConfig,
type: 'eip1559',
type: 'legacy',
maxNativePerTransactionWei: bigintMultiplyFloat(ONE_ETHER, 0.01),
},
harvest: {
Expand Down
6 changes: 1 addition & 5 deletions src/lib/rpc-actions/aggressivelyWriteContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,9 @@ export async function aggressivelyWriteContract<
});
logger.debug({ msg: 'Got nonce', data: { chain, address: args.address, nonce } });

let gasParams = await publicClient.estimateFeesPerGas({
const gasParams = await publicClient.estimateFeesPerGas({
type: rpcConfig.transaction.type,
});
if (chain === 'mode') {
// @ts-ignore
gasParams = {};
}
logger.debug({ msg: 'Got gas params', data: { chain, address: args.address, gasParams } });

const allPendingTransactions: Hex[] = [];
Expand Down

0 comments on commit 2d1cc15

Please sign in to comment.