...b mod solana_business_card {
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 =...
...m/signup?utm_source=internal&utm_campaign=guides&utm_content=how-to-deploy-and-interact-with-smart-contracts-on-tron)注册一个帐户。
> 在本指南中,为方便起见,我们将使用 TRON Nile 测试网。 因此,我们将使用公共终结点进行开发。 但是,我们建议在 TRO...
...组
```
/**
* @notice Get all details on the depositor's deposits and corresponding shares
* @param depositor The staker of interest, whose deposits this function will fetch
* @return (depositor's strategies, shares in these strategies)
*/
function getDeposits(address ...
...reFox extension MetaMask, or dedicated
Ethereum browsers, and make sure to connect one of your accounts
to the dapp.
);
}
if (web3.status === "initialized" && Object.keys(accounts).length === 0) ...