SDK
Guides
Migrate to v3

Migrate to v3

This guide references the major changes between v2 and v3 to help those migrating an existing app.

Note: When upgrading to protocol-kit v3, it's necessary to upgrade to safe-core-sdk-types v4.

The signTransactionHash() was renamed signHash()

The signTransactionHash() method was renamed to signHash() to align with the method's purpose. The method is not strictly for transactions, as the parameter is a hash, so the new name is more accurate.

// old:
protocolKit.signTransactionHash(safeTxHash)

// new:
protocolKit.signHash(safeTxHash)

Type changes

The SafeTransactionEIP712Args was renamed SafeEIP712Args as the EIP-712 is not exclusive for transactions.

Last updated on

Was this page helpful?

We use cookies to provide you with the best experience and to help improve our website and application. Please read our Cookie Policy for more information. By clicking "Accept all", you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and provide customer support.