Skip to content

Commit 240c915

Browse files
committed
Reduce Hashing to one call
1 parent d4daf8c commit 240c915

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/eu/bittrade/libs/steemj/base/models/SignedTransaction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void sign(String chainId) throws SteemInvalidTransactionException {
165165
Sha256Hash messageAsHash;
166166
while (!isCanonical) {
167167
try {
168-
messageAsHash = Sha256Hash.wrap(Sha256Hash.hash(this.toByteArray(chainId)));
168+
messageAsHash = Sha256Hash.of(this.toByteArray(chainId));
169169
} catch (SteemInvalidTransactionException e) {
170170
throw new SteemInvalidTransactionException(
171171
"The required encoding is not supported by your platform.", e);

0 commit comments

Comments
 (0)