Skip to main content
added 27 characters in body
Source Link
Anon
  • 1
  • 1

This gives a contract the same ability to interact with other contracts (with its address as msg.sender), as an externally-owned account, right?

function call(address _contract, bytes calldata _calldata)
    external returns (bool, bytes memory)  
{
    return b_contract.call(_calldata);  
}

This gives a contract the same ability to interact with other contracts (with its address as msg.sender), as an externally-owned account, right?

function call(bytes calldata _calldata) external returns (bool, bytes memory) { return b.call(_calldata); }

This gives a contract the same ability to interact with other contracts (with its address as msg.sender), as an externally-owned account, right?

function call(address _contract, bytes calldata _calldata)
    external returns (bool, bytes memory) 
{
    return _contract.call(_calldata); 
}
Source Link
Anon
  • 1
  • 1

Dynamically calling any other contract and function from contract

This gives a contract the same ability to interact with other contracts (with its address as msg.sender), as an externally-owned account, right?

function call(bytes calldata _calldata) external returns (bool, bytes memory) { return b.call(_calldata); }