MCPcopy Create free account
hub / github.com/Modulus-Labs/RockyBot / onClickConnectWalletButton

Function onClickConnectWalletButton

front-end/src/App.tsx:271–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269 // --- Button pressing functions ---
270
271 const onClickConnectWalletButton = async () => {
272 const { status, address } = await connectWallet();
273
274 if (address != null) {
275 openModalWithOptions(`Wallet ${truncateAddr(address)} has been connected!`, true);
276 setWalletAddr(address);
277 } else {
278 openModalWithOptions(`${status}`, true);
279 }
280 }
281
282 const onClickDonateButton = async () => {
283 if (walletAddr === "") {

Callers

nothing calls this directly

Calls 3

connectWalletFunction · 0.90
truncateAddrFunction · 0.90
openModalWithOptionsFunction · 0.85

Tested by

no test coverage detected