Skip to content

Commit e40e3ff

Browse files
committed
valuebalance byte[] to long
1 parent 8e16f84 commit e40e3ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/main/java/org/tron/core/actuator/ShieldedTransferActuator.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public boolean validate() throws ContractValidateException {
5252
throw new ContractValidateException(e.getMessage());
5353
}
5454

55-
byte[] signHash = new byte[256];
55+
byte[] signHash = new byte[32];
5656
// TODO generate signhash
5757
List<SpendDescription> spendDescriptions = shieldedTransferContract.getSpendDescriptionList();
5858
// check duplicate sapling nullifiers

‎src/main/protos/core/Contract.proto‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ message ShieldedTransferContract {
397397
repeated SpendDescription spend_description = 3;
398398
repeated ReceiveDescription receive_description = 4;
399399
bytes binding_signature = 5;
400-
bytes value_balance = 6;
400+
int64 value_balance = 6;
401401
bytes transparent_to_address = 7; // transparent address
402402
bytes to_amount = 8; // the amount to transparent to_address
403403
}

0 commit comments

Comments
 (0)