[−][src]Function dtoken::generate_dtoken
pub fn generate_dtoken(
acc: &Address,
token_template_id: &[u8],
n: U128
) -> Vec<u8>
generate dtoken
when the user calls buy dtoken in marketplace contract, marketplace contract will call the generate_dtoken method of the contract to generate dtoken for the buyer
account
is the buyer address
resource_id
used to mark the only commodity in the chain
token_template_id
used to mark the only token_template
n
represents the number of generate tokens