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 is the problem with this contract?
The approve method takes three parameters: owner, spender, amount.
When you call the approve method within your contract function "approve", The ERC20 token uses your contract as the "owner" parameter …
0
votes
How to get an array of one key from struct array?
I think a loop would be the only way to do it that way, hoewever you could just add the age to the peopleArray in the same function you add the age and name to the People struct.
0
votes
What is the functionality of UniswapV2ERC20 contract?
It's used to create a pair token for a new liquidity pool here is the docs for reference!
https://docs.uniswap.org/contracts/v2/reference/smart-contracts/Pair-ERC-20
1
vote
How to display web3's send transaction values in html
So, if I'm understanding correctly, you want the value of "tx" to be stored and to be displayed? I think the issue is that "tx" is an object which cannot be displayed in HTML so you will have to destr …
2
votes
Accepted
How does opensea exactly picks up the base URIs and what happens if I update it?
I believe they index the token uri and image at time of mint, but you should be able to update the metadata of each token on opensea. You can also try an endpoint refresh like alchemy has here: https: …
1
vote
How to correctly mint a NFT with any ERC20 token? Code w/ explanation provided below
There are two ways I can think of to make sure a user is whitelisted first before anything else happens. First you need to get the user account which can be accessed with this method:
let account;
we …
1
vote
Accepted
How to access the contents of an array in an external contract?
The interface function is incorrect, I have edited your code to show you what you would need to do! Hope this helps.
interface Challenge {
// the public array takes in an index and returns an addr …