ton-blockchain / stablecoin-contract

Sample code for centralised stablecoin jetton. TEP-74 and TEP-89 compatible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Function set_token_snake_metadata_entry Lacks Proper Parameter Definition

DanGlChris opened this issue · comments

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

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

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