Skip to content

Commit

Permalink
fix: move up fee ref
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvanipa committed Oct 20, 2024
1 parent 444cba8 commit d3ec645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/writeContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export async function writeContract<

const nonce = nonceManager.nextNonce();

const fullRequest = { ...preparedRequest, nonce, ...feeRef.fees };
const fullRequest = { ...feeRef.fees, ...preparedRequest, nonce };
debug("calling", fullRequest.functionName, "with nonce", nonce, "at", fullRequest.address);
return await getAction(client, viem_writeContract, "writeContract")(fullRequest as never);
},
Expand Down

0 comments on commit d3ec645

Please sign in to comment.