safe-global / safe-core-sdk

The Safe{Core} SDK allows builders to add account abstraction functionality into their apps.
https://docs.safe.global/sdk/overview
MIT License
255 stars 201 forks source link

protocol-kit: `enableModule` and `disableModule` functions are missing on Safe contracts #1021

Open jfschwarz opened 4 days ago

jfschwarz commented 4 days ago

Description

The type definitions seem to lack some functions. I tried encoding a call to enableModule but couldn't find that function on the contract instances provided by protocol-kit

image

Environment

dasanra commented 4 days ago

@jfschwarz thank you for your report. I see that for now you did a workaround with the .encode('enableModule, [])

Will check as we also use it like that in the moduleManager