capsule-corp-ternoa / ternoa-js

Ternoa JavaScript SDK to build on top of the Ternoa Chain ⚙️
https://docs.ternoa.network
Apache License 2.0
24 stars 11 forks source link

Mixing null and unefined #12

Closed markopoloparadox closed 2 years ago

markopoloparadox commented 2 years ago

Maybe it would make more sense to just use one "optional" type instead of two. It feels weird that I need to use both null and undefined on the same interface. image

Leouarz commented 2 years ago

Yeah I see what you mean. I guess the confusion comes from the parameters of the createNft call in the chain. I guess it would also work with undefined for nftCollectionId. @ipapandinas