WavesSDK-android icon indicating copy to clipboard operation
WavesSDK-android copied to clipboard

Update InvokeScriptTransaction.kt

Open hiletmis opened this issue 4 years ago • 0 comments

More than one payment fails to validate when arrayWithSize() included after all paymentItems added to bytes array.

If there are two items in payment array arrayWithSize() gives wrong size

Updated version calculates two and more items as following; [ (array_size) (item_01_size) (item_01) (item_02_size) (item_02)] Passes proof validation.

Current version calculates two items as following; [(array_size) (item_01_size + item_02_size) (item_01) (item_02)] Fails proof validation

hiletmis avatar Oct 16 '21 09:10 hiletmis