All Questions
5 questions
2
votes
2
answers
99
views
What induces the large bytecode warning, and how can I fix it?
The error that happens to me when I make a large contract. My contract cannot be split up into multiple contracts, it needs to all be one (particularly large) contract.
Warning: Contract code size is ...
0
votes
1
answer
53
views
How can I match Winning Numbers to Users Numbers?
I'm trying to match users inputted numbers to match an array(winning numbers) for a lottery game but I'm getting errors : How can I solve this?
"undeclared identifier"
uint8[] public numbers;...
0
votes
1
answer
232
views
How to get user addresses from mapping?
I am having trouble trying to get addresses from a mapping.
code 1 :mapping (uint8 => address payable[]) playersByNumber; // list of players with their number
code 2 : uint8[] public numbers; // ...
0
votes
2
answers
391
views
Returning all struct data of msg.sender in solidity
here is my code:
contract Notes {
struct notes {
string id;
string content;
address owner;
bool isCreated;
bool isDeleted;
uint256 timestamp;
}
...
2
votes
1
answer
850
views
Unable to replicate tx.origin attack
I was reading the solidity docs and decided to replicate tx.origin attack
. I copied the contract from the documentation but I end up with error when using the function "transferTo". Check the remix ...