Skip to content

Commit

Permalink
Make signTransaction method immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
germartinez committed Aug 24, 2022
1 parent b206089 commit 642c96b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/safe-core-sdk/src/Safe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,10 @@ class Safe {
})
signedSafeTransaction.addSignature(signature)

// TO-DO: Remove in v3.0.0 {
// TO-DO: Remove in v4.0.0 {
console.warn(
`⚠️ the "signTransaction" method now returns a signed Safe transaction. Please update your code according to the new documentation: https://github.com/safe-global/safe-core-sdk/tree/main/packages/safe-core-sdk#signtransaction. In >=v3.0.0, the signature will be added only to the return transaction object, and not to the one passed as an argument.`
`⚠️ the "signTransaction" method now returns a signed Safe transaction without modifying the passed safeTransaction argument. Please check the new documentation: https://github.com/safe-global/safe-core-sdk/tree/main/packages/safe-core-sdk#signtransaction.`
)
safeTransaction.addSignature(signature)
// }

return signedSafeTransaction
Expand Down

0 comments on commit 642c96b

Please sign in to comment.