MCPcopy Create free account
hub / github.com/NoteProtocol/NoteWallet / deploy

Method deploy

src/n20/simple-token.ts:28–34  ·  view source on GitHub ↗
(wallet: Wallet)

Source from the content-addressed store, hash-verified

26 super();
27 }
28 async deploy(wallet: Wallet) {
29 const toAddress = wallet.currentAccount.mainAddress!.address!;
30 const tx = await wallet.buildPayloadTransaction(deployData, toAddress);
31 // const tx = await wallet.buildCommitDataTransaction(deployData, toAddress);
32 const result = await wallet.broadcastTransaction(tx);
33 return result;
34 }
35 async mint(wallet: Wallet) {
36 const toAddress = wallet.currentAccount.tokenAddress!.address!;
37 const tx = await wallet.buildPayloadTransaction(mintData, toAddress);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected