Skip to content

Commit

Permalink
maybe fix zero base fee
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Oct 3, 2023
1 parent 6f75d8b commit e7ed2bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions/public/estimateMaxPriorityFeePerGas.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ test('client: chain `defaultPriorityFee` override', async () => {
transport: http(),
})
expect(await estimateMaxPriorityFeePerGas(client_4)).toBe(0n)

// async zero base fee
const client_5 = createPublicClient({
chain: {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/public/estimateMaxPriorityFeePerGas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export async function internal_estimateMaxPriorityFeePerGas<
client,
request,
} as ChainFeesFnParameters)
} else if (chain?.fees?.defaultPriorityFee)
} else if (typeof chain?.fees?.defaultPriorityFee !== 'undefined')
return chain?.fees?.defaultPriorityFee

try {
Expand Down

0 comments on commit e7ed2bd

Please sign in to comment.