#Why are the `name` and `symbol` values of the `initialize` function on the token contract Bytes?
11 messages · Page 1 of 1 (latest)
Actually looking at that PR it looks like only the return types are changing not the initialize types
good catch
@raven vine the PR I linked to on that thread (https://github.com/stellar/rs-soroban-env/pull/852) is updating the stellar asset contract. It has fixed name and symbol values that are derived from the stellar asset. Initializing the stellar asset contract accepts an xdr asset object, not a symbol and a name.
The functions for initializing tokens is not part of the standard token interface. You can use string, byte, whatever you want if you're making a token.
interesting i assumed everything needed to match exact on the token interface to ensure interop
so you're saying we can already initialize it with a string? would we then need to return bytes orr
Sorry I’m talking about our doc here for a Soroban only token https://github.com/stellar/soroban-examples/blob/v0.8.4/token/src/contract.rs#L13