Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [solidity]

Solidity is a programming language for creating smart contracts, primarily on the Ethereum blockchain

Filter by
Sorted by
Tagged with
0 votes
0 answers

Deposit and Point accrual contract

I've created a smart contract in Solidity and would like to ask for some review to highlight any potential issues. The primary goals of this contract of this contract are to: Allow users to deposit ...
HudsonGraeme's user avatar
0 votes
1 answer

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: ...
Tristan Nemoz's user avatar
-3 votes
1 answer

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 "...
Amnesia420's user avatar
4 votes
0 answers

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 ...
Iftifar Taz's user avatar
1 vote
0 answers

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 ...
Pr0methean's user avatar
6 votes
0 answers

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 ...
Daniel M.'s user avatar
  • 235