...c {
partner = _partner;
}
// withdraw 1% to recipient and 1% to owner
function withdraw() public {
uint amountToSend = address(this).balance.div(100);
// perform a call without checking return
// The recipient can revert, the owner will still get ...
...m/signup?utm_source=internal&utm_campaign=guides&utm_content=how-to-deploy-and-interact-with-smart-contracts-on-tron) 注册一个免费的帐户。
> 在本指南中,我们将使用 TRON Nile 测试网以方便开发。因此,我们将利用公共端点进行开发。但是,我们建议在 T...
...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!(...