From 20d15b1cae977414cf6828439d4f2f6993598f36 Mon Sep 17 00:00:00 2001 From: Haynar216 <1500012913@pku.edu.cn> Date: Tue, 12 Nov 2019 16:58:26 +0800 Subject: [PATCH] change 2048 to 2 * KBYTE --- app/src/main/java/systems/v/coldwallet/Wallet/Transaction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/systems/v/coldwallet/Wallet/Transaction.java b/app/src/main/java/systems/v/coldwallet/Wallet/Transaction.java index 7bd2b07..8fc2380 100644 --- a/app/src/main/java/systems/v/coldwallet/Wallet/Transaction.java +++ b/app/src/main/java/systems/v/coldwallet/Wallet/Transaction.java @@ -231,7 +231,7 @@ public static Transaction makeCreateContractTx(Account sender, String contract, long fee, short feeScale, BigInteger timestamp) { byte[] attachmentBytes = (description == null ? "" : description).getBytes(); - ByteBuffer buf = ByteBuffer.allocate(2048); + ByteBuffer buf = ByteBuffer.allocate(2 * KBYTE); buf.put(CREATE_CONTRACT);