Skip to content

Commit 9fba85c

Browse files
committed
feat: remove unwanted code
1 parent fc9fecc commit 9fba85c

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

Android/wallet/src/androidTest/java/com/flow/wallet/wallet/EthereumWalletTests.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ class EthereumWalletTests {
171171
val expectedHash = HasherImpl.keccak256(output.encoded.toByteArray()).toHexString()
172172
assertEquals(expectedHash, output.preHash.toByteArray().toHexString())
173173
assertEquals(expectedHash, output.txId().toHexString())
174-
assertEquals("0x$expectedHash", output.txIdHex())
175174
}
176175

177176
@Test
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.flow.wallet.wallet
22

33
import com.flow.wallet.crypto.HasherImpl
4-
import wallet.core.jni.HexCoding
54
import wallet.core.jni.proto.Ethereum
65

76
/**
@@ -15,10 +14,3 @@ fun Ethereum.SigningOutput.txId(): ByteArray {
1514
val computed = HasherImpl.keccak256(encoded.toByteArray())
1615
return computed
1716
}
18-
19-
fun Ethereum.SigningOutput.txIdHex(): String {
20-
val bytes = txId()
21-
if (bytes.isEmpty()) return "0x"
22-
return "0x${HexCoding.encode(bytes)}"
23-
}
24-

0 commit comments

Comments
 (0)