Skip to content

Commit 58cc4e8

Browse files
committed
<fix>(transaction): fix wasm call bug.
1 parent 9d6d6f5 commit 58cc4e8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/org/fisco/bcos/sdk/v3/transaction/manager/TransactionProcessor.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,7 @@ public Call executeCall(String from, String to, byte[] encodedFunction) {
262262
@Override
263263
public Call executeCallWithSign(String from, String to, byte[] encodedFunction) {
264264
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream()) {
265-
if (client.isWASM()) {
266-
outputStream.write(Hex.decode(cryptoSuite.hash(to)));
267-
} else {
268-
outputStream.write(Hex.decode(to));
269-
}
265+
outputStream.write(to.getBytes());
270266
outputStream.write(encodedFunction);
271267
byte[] hash = this.cryptoSuite.hash(outputStream.toByteArray());
272268
SignatureResult sign = this.cryptoSuite.sign(hash, this.cryptoSuite.getCryptoKeyPair());

0 commit comments

Comments
 (0)