python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to get a list of staked assets by address
I'm going crazy trying to figure this out.
I have the following public mapping:
mapping(uint256 => address) public staked;
When I stake an assets, I assign it like so:
function stake(uint256[] mem...
bryan
Votes: 0
Answers: 1
Revert throws "missing revert data" in inherited method
I've got a base contract which I use to add functionality to other contracts by inheritance.
For some reason, neither revert nor require are working as expected when the method is called by a descende...
GGizmos
Votes: 0
Answers: 1
Call solidity function dynamically, based on its bytes4 function selector
In a smart contract, let's say I have a function which wants to invoke
another function dynamically, based on some internal logic.
Here it obtains the function selector as a bytes4 variable.
After whi...
bguiz
Votes: 0
Answers: 3
Why can bytes1 store 0xb5 but can't store 2 in solidity?
I'am trying to learn about bytes in solidity but it is really confusing. I played around with bytes in remix but one thing in particular is very confusing.
When I tried to assign number 2 to bytes1 li...
Kuly14
Votes: 0
Answers: 2