...
}
/// An object conveying the privilege to withdraw funds from and deposit funds to the
/// `FlashLender` instance with ID `flash_lender_id`. Initially granted to the creator
/// of the `FlashLender`, and only one `AdminCap` per lender exists.
struct AdminCap has key, stor...
...
Message::Move {x, y} => {
println!("Move in the x direction {} and in the y direction {}", x, y);
}
Message::Write(text) => println!("Text message: {}", text),
Message::ChangeColor(r, g, b) => {
println!("Change the color to red {}, green {}, and blue {}", r, g, b);...
... Ownable {
// (manager i.e. victim) is trusted, so only they can mint and burn token
// (管理者,即受害者)是受信任的,所以只有他们可以铸造和销毁 token
constructor(address manager) ERC20("CCRToken", "CCRT") Ownable(manager) {}
// Only manager mint token
...