We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69df08f commit 821e672Copy full SHA for 821e672
library/src/commonMain/kotlin/xyz/mcxross/mbl/model/AccountAddress.kt
@@ -18,6 +18,16 @@ package xyz.mcxross.mbl.model
18
data class AccountAddress(
19
val data: ByteArray
20
) {
21
+
22
+ override fun toString(): String {
23
+ return buildString {
24
+ append("0x")
25
+ data.forEach { byte ->
26
+ append(byte.toInt().and(0xFF).toString(16).padStart(2, '0'))
27
+ }
28
29
30
31
override fun equals(other: Any?): Boolean {
32
if (this === other) return true
33
if (other == null || this::class != other::class) return false
0 commit comments