docs icon indicating copy to clipboard operation
docs copied to clipboard

Expand and clarify the use of post-conditions with examples

Open sabbyanandan opened this issue 1 year ago • 1 comments

Context:

I think I have managed to fix the issues I was having, but a key thing that I noticed was that in order for fungible token post conditions to work, the createAssetInfo function used to create the info must use the fungible-token name as defined in the deployment contract, and not the name of the token from the contract. Simple things like these are easy to miss when coding, and I think a general update of the post condition documentation including more examples would be helpful and in order. It took me a few days to figure this out.

This developer had to trial & error and figure it out, but they figured it out, and kudos to them! However, this will stump others, so it would help to expand the post-condition examples with this use-case scenario and explain exactly what needs to be set.

sabbyanandan avatar Feb 28 '24 18:02 sabbyanandan

@sabbyanandan noted: this will be added to the docs revamp

ryanwaits avatar May 07 '24 15:05 ryanwaits