File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed
androidTest/java/com/flow/wallet/wallet
main/java/com/flow/wallet/wallet Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11package com.flow.wallet.wallet
22
33import com.flow.wallet.crypto.HasherImpl
4- import wallet.core.jni.HexCoding
54import 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-
You can’t perform that action at this time.
0 commit comments