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

Remove redundant state existence check when loading inputs/outputs #244

Closed whfuyn closed 5 months ago

whfuyn commented 5 months ago

.contains_key(key) is equivalent to .get(key).is_some(). It's impossible to get a None when .contains_keys returns true.

whfuyn commented 5 months ago

Fixed!

dr-orlovsky commented 5 months ago

Thank you and congrats on the first contribution to the repo!