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 |
Questions about Remix, an online browser compiler for Solidity, formerly called Browser Solidity.
1
vote
I`m trying compilate this code and getting Parse error
You're missing a semicolon when you defined MAx_AMOUNT.
this is the line causing the parsing error:
uint256 constant public MAx_AMOUNT = 10000
corrected:
uint256 constant public MAx_AMOUNT = 10000;
0
votes
How can I transfer eth from an account wallet to a smart contract
In order to send or receive Ether, you must declare a function with the keyword payable . By applying the following changes:
function subscribe(uint planId, address payable _to) public payable {
P …
0
votes
Constructor functions
No it doesn't.
The most and obvious reason is that a function can never have the same name as the contract.
Function can only be called at a defined time to perform a specific task and it requires a …
0
votes
nested struct in solidity
As it was mentioned in the first answer, It is easier if you combine
your structs into one:
enum Gender{MALE, FEMALE}
// Returns uint
// MALE - 0
// FEMALE - 1
struct Pdetails …
2
votes
Accepted
BigNumber error
Your contract works fine. As the two previous replies mentioned, you're "deploying" your contract with a void input. In other words, you haven't specified the value of your data.
type any uint value i …