Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Solidity is a contract-oriented, high-level language whose syntax is similar to that of JavaScript and it is designed for writing smart contracts in Ethereum to run on the EVM. Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features.
0
votes
What's the difference between upgradable and non upgradable Initializable contracts?
@openzeppelin/contracts/proxy/utils/Initializable.sol and @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol is the same, diffrent import from diffrent package
When using upgradable …
0
votes
When To Prompt for Signing Message?
we have to have the user sign a message with a provided nonce in some dapps like Opensea because for identify user wallet in the backend.
On the frontend when can using injected wallet extension to pr …
0
votes
Accepted
A public variable when called returns an object instead of an address in solidity
There is no problem with your solidity code. I think problem from your js code. …
0
votes
Updating a struct value in mapping
Checking is updateDoc(uint _id, string memory _IPFShash, string memory _title) _id is correct?
Seem your title not update because your code missing update title
function updateDoc(uint _id, stri …
0
votes
How to write a bridge
You can read here and try it: https://docs.tokenbridge.net/ - opensource all components and you can set up by yourself
0
votes
how to check if a uri is already existing in a contract?
You remove _setURI(uri); and in the constructor you add _uri. For example:
constructor(string memory NftName, string memory NftSymbol) ERC1155(your_uri) {
name = NftName;
symbol = NftS …
0
votes
Should I not expose the abi of the smart contract?
Actually, You not public abi but when you deployed smart contract to blockchain, the execute code is public with anyone so other people can decode it and know your the abi, maybe. If you want to prote …
1
vote
Unittest for excisting NFT
You can connect the contract by using ethers
const erc721 = ethers.Contract(YOUR_NFT_ADDRESS, ERC721ABI, signer)
And you can test user holder nft or not:
expect(await erc721.balanceOf(userAddress)).t …