grassrootseconomics / cic-ussd

A USSD client implementation that interfaces with the community inclusion currencies custodial system.
GNU Affero General Public License v3.0
1 stars 2 forks source link

Add success status check for registration events in NATs #72

Closed mango-habanero closed 1 year ago

mango-habanero commented 1 year ago

The current registration event handler in ussd assumes that an event from the REGISTER stream will always be successful this is wrong. Add a check for the transaction status before marking it as activated on the chain and proceeding with activation on ussd.