WavesSDK-android
WavesSDK-android copied to clipboard
Update InvokeScriptTransaction.kt
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