Linked Questions
20 questions linked to/from Difference between require and assert and the difference between revert and throw
1
vote
1
answer
477
views
Can I add a modifier in a function inheriting from the interface?
Let's consider this situation:
interface ITest
{
function check()
external;
}
contract Test is ITest
{
address private admin;
constructor()
public
{
admin = ...
0
votes
1
answer
274
views
Adding address to Struct's array of addresses does not persist
I'm having trouble getting the array of "watchers" to persist after I:
Deploy the contract
Create Magic with name "test1"
Execute watchMagic (with test1's magic id)
Execute watchMagic (with test1's ...
1
vote
1
answer
162
views
Is there anyway a smart contract creator can put a limit on the gasPrice(gwei) for a transaction?
I am looking at the possibility of creating a custom token on the Ethereum network & wanted to know if there is a way if i can put an limit on the gasPrice in order to prevent the so called "gas ...
2
votes
2
answers
46
views
Change value if function parameter is not zero
I have this function.
How do I change only the parameters that aren't zero when calling the function? This is what I did
function changeParameters(uint newAnte, uint8 newNumberOfPlayers, uint ...
1
vote
0
answers
17
views
What's the point of 'assert'? Can't i just use 'require' all the time? [duplicate]
I read this stackexchange post and understood the difference between 'assert' and 'require'.
But it got me thinking, what even is the point of 'assert'? I mean it has same the behaviour as 'require' ...