diff --git a/pkg/morph/client/client.go b/pkg/morph/client/client.go index 847e7ebe..ef81c017 100644 --- a/pkg/morph/client/client.go +++ b/pkg/morph/client/client.go @@ -487,15 +487,8 @@ func toStackParameter(value interface{}) (sc.Parameter, error) { return toStackParameter(arr) case bool: - // FIXME: #1141 there are some problems with BoolType in neo-go, - // so we use compatible type - result.Type = sc.IntegerType - - if v { - result.Value = int64(1) - } else { - result.Value = int64(0) - } + result.Type = sc.BoolType + result.Value = v default: return result, wrapNeoFSError(fmt.Errorf("chain/client: unsupported parameter %v", value)) } diff --git a/pkg/morph/client/client_test.go b/pkg/morph/client/client_test.go index ab26f9c7..5239ffa1 100644 --- a/pkg/morph/client/client_test.go +++ b/pkg/morph/client/client_test.go @@ -34,13 +34,11 @@ func TestToStackParameter(t *testing.T) { }, { value: false, - expType: sc.IntegerType, - expVal: int64(0), + expType: sc.BoolType, }, { value: true, - expType: sc.IntegerType, - expVal: int64(1), + expType: sc.BoolType, }, }