...rogram]
pub mod favorites {
use super::*;
// Our instruction handler! It sets the user's favorite number and color
pub fn set_favorites(context: Context, number: u64, color: String, hobbies: Vec) -> Result {
let user_public_key = context.accounts.user.key();
msg!(...
...r::public_transfer(zero(for, ctx), for)
}
/// Ban some address and forbid making any transactions from or to this address.
/// Only owner of the AbcTreasuryCap can perform this action.
public entry fun ban(_cap: &AbcTreasuryCap, registry: &mut Registry, to_ban: address) {
...
...tial state.
Note: The called function should be payable if you send value and the value you send should be less than your current balance.
Debug the transaction to get more information.
这个合约代码我见过在很多合约上用过,应该是个通用的代码,试过虚拟机、测试...
...m/signup?utm_source=internal&utm_campaign=guides&utm_content=how-to-deploy-and-interact-with-smart-contracts-on-tron) 注册一个免费的帐户。
> 在本指南中,我们将使用 TRON Nile 测试网以方便开发。因此,我们将利用公共端点进行开发。但是,我们建议在 T...
...=INFO cargo run -- --address 0x88d0af73508452c1a453356b3fac26525aec23a2
and the output is going to be:
RUST_LOG=INFO cargo run -- --address 0x88d0af73508452c1a453356b3fac26525aec23a2
Compiling ens-resolution v0.1.0 (/Users/leboiko/Documents/ens-resolution)
Finished `dev` profile [...