diff --git a/.changeset/chilly-kangaroos-clap.md b/.changeset/chilly-kangaroos-clap.md new file mode 100644 index 0000000000..0d98706e68 --- /dev/null +++ b/.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 diff --git a/packages/common/src/chains/mudFoundry.ts b/packages/common/src/chains/mudFoundry.ts index 1754534d8d..29705d4684 100644 --- a/packages/common/src/chains/mudFoundry.ts +++ b/packages/common/src/chains/mudFoundry.ts @@ -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;