From 778ed1d1dfe116ae2063bb9b17a72effd1b96f0d Mon Sep 17 00:00:00 2001 From: ALPAC-4 Date: Mon, 4 Dec 2023 14:34:37 +0900 Subject: [PATCH] fix: return empty arrays when get 0 arguments --- x/move/client/cli/utils.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x/move/client/cli/utils.go b/x/move/client/cli/utils.go index 29836c91..d3d6e5e0 100644 --- a/x/move/client/cli/utils.go +++ b/x/move/client/cli/utils.go @@ -295,6 +295,10 @@ func DivideUint256String(s string) (uint64, uint64, uint64, uint64, error) { } func parseArguments(s string) (tt []string, args []string) { + if len(s) == 0 { + return + } + cursor := 0 var t, a string