Skip to main content

register

Function register 

Source
pub fn register(
    currency: Currency,
    metadata: TokenCurrency,
) -> CorrectnessResult<Currency>
Expand description

Registers a token code and its chain/contract binding, retaining the first name and symbol.

ยงErrors

Returns an error if metadata is invalid, a legacy code exists, or an amount definition conflicts.