Questions tagged [solidity]
Solidity is a programming language for creating smart contracts, primarily on the Ethereum blockchain
8
questions
0
votes
0
answers
53
views
Chaining react hooks using uniswap style template
I'm trying to chain react hooks together. I need to do the following
Obtain the Balance of NFT's a user has
Enumerate the balance of nft's and generate index arguments to call the RPC to get the ...
0
votes
0
answers
26
views
Solidity Ethereum Multi-Signature Vault Contract
This is a smart contract that I wrote in Solidity which is intended to store Ethereum securely. I intended it to be simple, mostly because I wanted it to be inexpensive to deploy and gas efficient. I ...
0
votes
0
answers
44
views
EVM Proxy Smart Contract Detector
This code flags potential Ethereum Virtual Machine (EVM) proxy contracts. Almost all proxy contracts are not auditable, since the code can be changed at any moment, and so should be avoided by users.
...
0
votes
1
answer
91
views
Recursive function that gives the number of hashes present in a Merkle Mountain Range proof
I have written a function that gives the number of hashes present in a Merkle Mountain Range proof. Using Solidity, this function can be written as:
...
-3
votes
1
answer
60
views
Send token from addressA to addressB through contract [closed]
Hello how can i send a token from the msg.sender to mycontract through a function inside my contract?
i tried to do a transferFrom
"...
4
votes
0
answers
70
views
Optimization of weightedWinner() and random() function
I have written a Lottery contract that picks winner based on the amount they contributed to the pool. I am looking if the code of weightedWinner function can be ...
1
vote
0
answers
112
views
Solidity: verifying primality certificates, bounty for large primes
This is my first smart contract, and it isn't finished yet, but the remaining bits are complicated enough that I'd like to make sure I'm on the right track first. My concerns are:
At line 117, is the ...
6
votes
0
answers
125
views
Connect Four implemented via smart contract
I'm learning Solidity development, so I decided that Connect Four would be a fun side-project to work on.
Here's the current flow:
A user creates a new game and sends ether to the contract, then ...