diff --git a/pkg/core/native/management.go b/pkg/core/native/management.go index 6b73c2528..2a1bc77d5 100644 --- a/pkg/core/native/management.go +++ b/pkg/core/native/management.go @@ -409,14 +409,14 @@ func (m *Management) GetMinimumDeploymentFee(dao dao.DAO) int64 { } func (m *Management) setMinimumDeploymentFee(ic *interop.Context, args []stackitem.Item) stackitem.Item { - value := toUint32(args[0]) - if value < 0 { - panic(fmt.Errorf("MinimumDeploymentFee cannot be negative")) + value := toBigInt(args[0]) + if value.Sign() < 0 { + panic("MinimumDeploymentFee cannot be negative") } if !m.NEO.checkCommittee(ic) { panic("invalid committee signature") } - err := setIntWithKey(m.ID, ic.DAO, keyMinimumDeploymentFee, int64(value)) + err := ic.DAO.PutStorageItem(m.ID, keyMinimumDeploymentFee, bigint.ToBytes(value)) if err != nil { panic(err) }