From 419365145ae417553a6600c6ce1a0f5e74498d6f Mon Sep 17 00:00:00 2001 From: Alexey Kiselev Date: Fri, 4 Dec 2020 11:42:00 +0300 Subject: [PATCH] Empty attached payments must be an empty RIDE list not Unit (#396) --- pkg/ride/converters.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ride/converters.go b/pkg/ride/converters.go index 4862d3345..f8331184e 100644 --- a/pkg/ride/converters.go +++ b/pkg/ride/converters.go @@ -859,7 +859,7 @@ func invokeScriptWithProofsToObject(scheme byte, tx *proto.InvokeScriptWithProof r["payments"] = pl default: r["payment"] = rideUnit{} - r["payments"] = rideUnit{} + r["payments"] = make(rideList, 0) } r["feeAssetId"] = optionalAsset(tx.FeeAsset) r["function"] = rideString(tx.FunctionCall.Name)