All Questions
8 questions
2
votes
2
answers
3k
views
Reason for check of msg.value > 0
I came across published smart contracts (like this one from ConsensSys) that check whether msg.value is strictly larger than zero in their payable functions.
After wondering whether msg.value can be ...
0
votes
1
answer
85
views
Can anyone see transactions from a contract?
Can anyone see all outgoing Ether transactions from a contract?
If no, is it possible somehow to make the transactions visible? (maybe, using events?)
0
votes
1
answer
124
views
Transfer event for zero amount
Should I emit Transfer event, when zero amount of Ether or of a token is transferred?
Variants of the answer:
yes
no
both are OK
0
votes
1
answer
60
views
How to send a token with Ether? (several variants)
I want to sell my token to users paying by Ether.
Is it a good idea to require the user to pass his wallet (to receive) Ether as the EVM payload?
Or is it needed to have my private key uploaded to ...
1
vote
1
answer
187
views
Are all eth-tokens the same with respect to speed and security?
If two tokens both are based on eth and serve the same use case, should we assume similar transaction processing speed and resistance to Byzantine faults like Sybil / 51% attacks?
For example, ...
18
votes
6
answers
38k
views
send ethers from one contract to another
I am wondering how can I have ethers in my contract. I have 2 contracts associated with different accounts.
I want to send ethers from one contract to another but how do I have ethers in my contract ...
3
votes
1
answer
692
views
How does solidity detect that Ether has been sent from one address to the other address?
I have learned solidity. And I have one question.
How does contract detect that Ether has been sent from one address to the other address?
8
votes
2
answers
2k
views
Smart contract based betting — protection against depreciation
Let’s say I want to enter into a bet with my friend — if it rains 10 days from now, I will pay him $100; if it doesn’t, he will pay me $100.
Would it be possible to take advantage of smart contract ...