Skip to content

Commit

Permalink
Merge pull request #148 from pimlicolabs/new-release
Browse files Browse the repository at this point in the history
Have more explicit types
  • Loading branch information
plusminushalf authored Mar 11, 2024
2 parents 598bb44 + 565e1ff commit f6bc9ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-ads-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"permissionless": patch
---

Fixed signature type issue for typescript 5.2.2 and viem 2.7.8
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export async function signerToBiconomySmartAccount<
return toSmartAccount({
address: accountAddress,
async signMessage({ message }) {
let signature = await signMessage(client, {
let signature: Hex = await signMessage(client, {
account: viemSigner,
message
})
Expand All @@ -284,7 +284,7 @@ export async function signerToBiconomySmartAccount<
}
return encodeAbiParameters(
[{ type: "bytes" }, { type: "address" }],
[signature as Hex, ecdsaModuleAddress]
[signature, ecdsaModuleAddress]
)
},
async signTransaction(_, __) {
Expand Down

0 comments on commit f6bc9ab

Please sign in to comment.