ton-blockchain / stablecoin-contract

Sample code for centralised stablecoin jetton. TEP-74 and TEP-89 compatible
146 stars 43 forks source link

Function set_token_snake_metadata_entry Lacks Proper Parameter Definition #63

Closed DanGlChris closed 8 months ago

DanGlChris commented 8 months ago

Function set_token_snake_metadata_entry does not properly define its parameter value, which may result in an error when the function is called.

you don't define "value"? the third parameter maybe there is a default value?

in jetton-minter.jc line 243-248 image

function is define here: stdlib.fc line 876 image

nns2009 commented 8 months ago

In FunC: t = a~fun(b, c) is the same as a, t = fun(a, b, c) so the first parameter is "content_dict"

tolya-yanot commented 8 months ago

Yes, it's a feature of the syntax. @nns2009 answered you correctly