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

error:The fee cap (maxFeePerGas = xxxx gwei) cannot be lower than the block base fee #3327

Open
DavidCoder88 opened this issue Oct 24, 2024 · 0 comments

Comments

@DavidCoder88
Copy link

DavidCoder88 commented Oct 24, 2024

Following codes occasionally reports this error:The fee cap (maxFeePerGas = xxxx gwei) cannot be lower than the block base fee
const tx = await worldContract.write.moveSnake([list]); await waitForTransaction(tx);
moveSnake is a contranct function that implemented by sol which is based in MUD.
The error occurred though I added the params like this:
await worldcontract.write.moveSnake( list: [list],{maxFeePerGas: 300000000n, })
It doesn't seem to be working. Can you give me some suggesiton to solve this problem?

19cab006489cc923644f252d3c5aa66
I also tried to update to the codes like the attachment picture showed, but the same error come.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants
@DavidCoder88 and others