All Questions
Tagged with external-function dynamic-call
2 questions
0
votes
2
answers
157
views
What if a dynamic call at the end of a function uses all the remaining gas of the caller?
Suppose we have a contact like this:
contract x {
function y() external
{
// do some magic!
if (some_condition) {
another_contract_address.call(abi.encodeWithSignature("...
3
votes
1
answer
2k
views
Can external solidity functions get called within the same contract dynamically?
Assume we have the following solidity contract:
contract khiar {
function mooz(uint size) external {
// do something with mooz!
}
function bademjoon(uint size) external {
/...