diff --git a/v2/accounting/grpc/service.go b/v2/accounting/grpc/service.go index 0da7936..058067b 100644 --- a/v2/accounting/grpc/service.go +++ b/v2/accounting/grpc/service.go @@ -5,20 +5,6 @@ import ( service "github.com/nspcc-dev/neofs-api-go/v2/service/grpc" ) -// SetValue sets value of the decimal number. -func (m *Decimal) SetValue(v int64) { - if m != nil { - m.Value = v - } -} - -// SetPrecision sets precision of the decimal number. -func (m *Decimal) SetPrecision(v uint32) { - if m != nil { - m.Precision = v - } -} - // SetOwnerId sets identifier of the account owner. func (m *BalanceRequest_Body) SetOwnerId(v *refs.OwnerID) { if m != nil { diff --git a/v2/accounting/grpc/types.go b/v2/accounting/grpc/types.go new file mode 100644 index 0000000..3099f69 --- /dev/null +++ b/v2/accounting/grpc/types.go @@ -0,0 +1,15 @@ +package accounting + +// SetValue sets value of the decimal number. +func (m *Decimal) SetValue(v int64) { + if m != nil { + m.Value = v + } +} + +// SetPrecision sets precision of the decimal number. +func (m *Decimal) SetPrecision(v uint32) { + if m != nil { + m.Precision = v + } +}