Skip to main content

Questions tagged [smart-contract]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
1 vote
1 answer
41 views

solana contract rust error anchor build

use anchor_lang::prelude::*; use anchor_spl::token::{self, Mint, Token, TokenAccount, Transfer, MintTo}; declare_id!("GTPh1tdHiMWVj3yBj2S2ZZftuLPEWPyQZ6Cy7g5ibM5K"); #[program] pub mod puj { ...
proyectosdev0623 xxx's user avatar
0 votes
0 answers
23 views

I cant use my sol in my wallet

There’s a smart contract in the wallet to send any funds out of the wallet , I asked a different dev to do it for me because the wallet was compromised , what I can do boys? I cant send my sol it's ...
dad's user avatar
  • 1
0 votes
1 answer
33 views

Can users pass Dummy State Accounts in Solana Program?

I'm working with a Solana program and I have the following code: #[derive(Accounts)] pub struct SomeStruct<'info> { #[account()] pub state: Account<'info, State>, .... } I'm ...
zOthix's user avatar
  • 101
0 votes
0 answers
27 views

Can't deploy a smart contract: cli 'solana program show --programs' returns nulls

For those who've been following this, I been dealing with ISSUES trying to make a solana-token ICO widget, basically I finally got around both the, error: package `solana-program v1.18.2` cannot be ...
Keola's user avatar
  • 83
2 votes
1 answer
27 views

|RUST| link Error:1169 Solana Transaction Contract

Here is my entire main.rs,, mod utils; use actix_cors::Cors; use actix_web::{web, App, HttpServer, Responder, HttpResponse, HttpRequest}; use serde::{Deserialize, Serialize}; use reqwest::Client; use ...
Keola's user avatar
  • 83
1 vote
1 answer
49 views

how do I use the anza-xyz/wallet-adapter with my create-react-app?

currently I have a css/react.js widget made in C:\Users\Keola\Desktop\MyToken-ICOWidget\Project\React-Widget\ico_widget which looks like this: (so far) I want to tie in the wallet adapter to the ...
Keola's user avatar
  • 83
1 vote
0 answers
18 views

Solana Smart contract automatic audit tool

I used soteria before to audit solana programs. But it was not updated and does not support latest anchor versions. If anyone knows automatic audit tool, hope to share your experience and knowledge ...
0xbear's user avatar
  • 11
0 votes
0 answers
124 views

What does isMutable : 0/1 mean?

I always see this on solana smart contract's Metadata & I know for a fact that 0 means FALSE, and 1 is TRUE as i've researched regarding this question, the owner can alter changes/settings if its ...
Lupus7's user avatar
  • 1
1 vote
1 answer
18 views

How is the keypair for every contract generated?

When we build a smart contract e.g., program-examples/basics/hello-solana there are two files in the target/so directory hello_solana_program-keypair.json hello_solana_program.so How is the ...
A. K.'s user avatar
  • 175
0 votes
0 answers
28 views

Is this possible or ChatGPT is telling me rubbish

Ability to mint after mint authority is gone. Design the Emergency Minting Logic: Define the conditions under which emergency minting should be triggered. This could include scenarios such as the burn ...
Noob Dev's user avatar
0 votes
1 answer
63 views

How to access SPL token data in our Solana smart contract

I have created SPL token. I want to access this token data in my rust smart contract so that I can get information about which user has how many tokens? How can I do that?
Ashish Kumar's user avatar
0 votes
1 answer
113 views

Solana Rust - Failed to serialize or deserialize account data: Unknown

I am creating simple contract for storing ipfs hashes (see in attachment). When trying to call instruction 1 (AddIpfsHash) from python via solana-py and solders I get following error: "...
Alena Martinková's user avatar
2 votes
1 answer
52 views

Signer issues with anchor tests

i'm getting a weird signer error when running my tests; Error: Signature verification failed. Missing signature for public key [`6jAudYFBbfQS59oPNjYcMkqr9MqBf312T7oP6WSYRjsg`]. In this case, ...
Morgandril's user avatar
3 votes
1 answer
196 views

Sol contract analysis

Hey I come from ethereum. Im conducting contract audits for adding new tokens to our platform. I can't seem to find the source code for a lot of these SPLs and token2022. like on ethscan the contract ...
Will's user avatar
  • 31
2 votes
2 answers
312 views

Does Solana have a strategy for erasing immoral (and illegal) metadata?

For instance, if someone uploaded (FBI level) bad (immoral, illegal, etc.) stuff into the metadata of an NFT, are there any moderation pools that are capable of erasing the metadata? Or is that ...
Bryan Grace's user avatar