RGB-WG / rgb-core

RGB Core Library: consensus validation for private & scalable client-validated smart contracts on Bitcoin & Lightning
https://spec.rgb.tech
Apache License 2.0
207 stars 52 forks source link

Fix SchemaGlobalStateLimit Validation #146

Closed crisdut closed 1 year ago

crisdut commented 1 year ago

Hi @dr-orlovsky,

I tried to validate a Schema containing only a Nominal field and a ContractText field, but does not working!

This PR fixes Global State Limit validation when the number of occurrences equals 1.