Skip to content

Commit

Permalink
Merge pull request rhinestonewtf#83 from rhinestonewtf/fix/smart-sess…
Browse files Browse the repository at this point in the history
…ions-installation

fix: allow smart sessions installation with empty sessions array
  • Loading branch information
kopy-kat authored Oct 11, 2024
2 parents a718311 + c9167bc commit 575cc32
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 575cc32

Please sign in to comment.