You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
provide and fix the params in this.getCalldataForFunction
FungibleToken
init-function (sophia)
entrypoint init(name: string, decimals : int, symbol : string) =
// If the `name` lenght is less than 1 symbol abort the execution
require(String.length(name) >= 1, "STRING_TOO_SHORT_NAME")
// If the `symbol` length is less than 1 symbol abort the execution
require(String.length(symbol) >= 1, "STRING_TOO_SHORT_SYMBOL")
// If the provided value for `decimals` is negative abort the execution
require_non_negative_value(decimals)
{ owner = Call.caller,
total_supply = 0,
balances = {},
meta_info = { name = name, symbol = symbol, decimals = decimals } }
we have 2 problems to solve here:
this.getCalldataForFunction
FungibleToken
init-function (sophia)
deploy-method (generated java class)
The text was updated successfully, but these errors were encountered: