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.


_10
// old:
_10
protocolKit.signTransactionHash(safeTxHash)
_10
_10
// new:
_10
protocolKit.signHash(safeTxHash)

Type changes

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

Was this page helpful?