rogersanick / SettlersOfCordan

Other
11 stars 4 forks source link

Token-SDK Implementation Issue - Generate in-game spend [HARD] #28

Closed rogersanick closed 5 years ago

rogersanick commented 5 years ago

generateInGame spend is a utility used in several flows. Originally it was intended to burn tokens so that players may purchase in game assets.

The token SDK is implemented such that tokens should be redeemed rather than arbitrarily consumed. I have implemented a refactor but it's causing a bug (and hanging test result).

The test that fails in the repo is the only one affect by this issue. Comment out assert(false) to begin debugging.

rogersanick commented 5 years ago

RedeemToken utility from token-sdk was sufficient to 'burn' tokens.