I’m looking about default module of LibraCoin and have one question about mint function.
There is this code, _ = move(capability);
, inside the mint function.
However, I have no idea about what this means.
Do you have any idea about this ?
Thank you.
This is the code of LibraCoin module and mint function.
resource MintCapability {
_dummy: bool
}
public mint(value: u64, capability: &Self.MintCapability): Self.T acquires MarketCap {
let market_cap_ref: &mut Self.MarketCap;
let market_cap_total_value: u128;
_ = move(capability);
assert(copy(value) <= 1000000000 * 1000000, 11); // * 1000000 because the unit is microlibra
market_cap_ref = borrow_global_mut<MarketCap>(0xA550C18);
market_cap_total_value = *©(market_cap_ref).total_value;
*(&mut move(market_cap_ref).total_value) = move(market_cap_total_value) + to_u128(copy(value));
return T{value: move(value)};
}