Skip to content

Commit

Permalink
fix: include custom signature in estimateGas calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ly0va authored and danijelTxFusion committed Nov 2, 2024
1 parent 5e63ac5 commit 703690d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,9 @@ export function JsonRpcApiProvider<
Array.from(ethers.getBytes(dep))
);
}
if (tx.customData.customSignature) {
result.eip712Meta.customSignature = Array.from(ethers.getBytes(tx.customData.customSignature));
}
if (tx.customData.paymasterParams) {
result.eip712Meta.paymasterParams = {
paymaster: ethers.hexlify(tx.customData.paymasterParams.paymaster),
Expand Down

0 comments on commit 703690d

Please sign in to comment.