python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k 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