Skip to content

Commit

Permalink
fix: allow smart sessions installation with empty sessions array
Browse files Browse the repository at this point in the history
  • Loading branch information
kopy-kat committed Oct 11, 2024
1 parent a718311 commit c9167bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/smart-sessions/installation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const getSmartSessionsValidator = ({
return {
address: SMART_SESSIONS_ADDRESS,
module: SMART_SESSIONS_ADDRESS,
initData: sessions
initData: sessions?.length
? encodeAbiParameters(installSmartSessionsAbi, [sessions])
: '0x',
deInitData: '0x',
Expand Down

0 comments on commit c9167bc

Please sign in to comment.