Skip to content

Commit

Permalink
fix(common): workaround for zero base fee (#1689)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Oct 3, 2023
1 parent 4385c5a commit 16b13ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilly-kangaroos-clap.md
@@ -0,0 +1,5 @@
---
"@latticexyz/common": patch
---

Adds viem workaround for zero base fee used by MUD's anvil config
3 changes: 2 additions & 1 deletion packages/common/src/chains/mudFoundry.ts
Expand Up @@ -4,6 +4,7 @@ import { MUDChain } from "./types";
export const mudFoundry = {
...foundry,
fees: {
defaultPriorityFee: 0n,
// This is intentionally defined as a function as a workaround for https://github.com/wagmi-dev/viem/pull/1280
defaultPriorityFee: () => 0n,
},
} as const satisfies MUDChain;

1 comment on commit 16b13ea

@vercel
Copy link

@vercel vercel bot commented on 16b13ea Oct 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.