github trustwallet/wallet-core 4.2.20

latest releases: 4.6.1-rc2, 4.6.1-rc1, 4.6.0...
10 months ago

What's Changed

Breaking Changes

  • Ethereum.SigningInput.transaction payload needs to be manually wrapped into Ethereum.Transaction.Execute message to be able to call a Smart Contract Wallet function through EIP-4337 entry point and UserOperation.
    For example,
- transaction = Ethereum.Transaction.newBuilder().apply {
-     erc20Transfer = Ethereum.Transaction.ERC20Transfer.newBuilder().apply {
-         to = "0x95dc01ebd10b6dccf1cc329af1a3f73806117c2e"
-         amount = ByteString.copyFrom("0xb5e620f48000".toHexByteArray())
-     }.build()
- }.build()
+ transaction = Ethereum.Transaction.newBuilder().apply {
+     scwExecute = Ethereum.Transaction.SCWalletExecute.newBuilder().apply {
+         transaction = Ethereum.Transaction.newBuilder().apply {
+             erc20Transfer = Ethereum.Transaction.ERC20Transfer.newBuilder().apply {
+                 to = "0x95dc01ebd10b6dccf1cc329af1a3f73806117c2e"
+                 amount = ByteString.copyFrom("0xb5e620f48000".toHexByteArray())
+             }.build()
+         }.build()
+     }.build()
+ }.build()
  • Ethereum.Transaction.Batch message is renamed to Ethereum.Transaction.SCWalletBatch
  • Ethereum.Transaction.batch field is renamed to Ethereum.Transaction.scwBatch

Full Changelog: 4.2.19...4.2.20

Don't miss a new wallet-core release

NewReleases is sending notifications on new releases.