iotaledger / entangled

enTangle'd is an amalgamation of all things Tangle
Apache License 2.0
113 stars 66 forks source link

mobile/ios: Abstract away uint8_t parameter conversion #1401

Closed rajivshah3 closed 5 years ago

rajivshah3 commented 5 years ago

To make the API a bit more user friendly for iOS developers, iota_ios_pow_trytes and iota_ios_pow_bundle should accept an NSNumber instead of uint8_t for mwm. The conversion to uint8_t is done inside the function by converting mwm to unsigned char and then casting it to uint8_t.

Test Plan:

Tested in demo app