Skip to main content
Commonmark migration
Source Link

According to the Solidity documentation, starting from version 0.5.0 it is possible to access the return data from a call:

address.call(bytes memory) returns (bool, bytes memory)

 

issue low-level CALL with the given payload, returns success condition and return data, forwards all available gas, adjustable

The data is given as a single bytes array, so you will likely want to decode it using abi.decode in order to make use of it.

Prior to version 0.5.0, you can count on the fact that the return values remains on the stack when the call() returns. They can be accessed, but you will have to use assembly.

According to the Solidity documentation, starting from version 0.5.0 it is possible to access the return data from a call:

address.call(bytes memory) returns (bool, bytes memory)

 

issue low-level CALL with the given payload, returns success condition and return data, forwards all available gas, adjustable

The data is given as a single bytes array, so you will likely want to decode it using abi.decode in order to make use of it.

Prior to version 0.5.0, you can count on the fact that the return values remains on the stack when the call() returns. They can be accessed, but you will have to use assembly.

According to the Solidity documentation, starting from version 0.5.0 it is possible to access the return data from a call:

address.call(bytes memory) returns (bool, bytes memory)

issue low-level CALL with the given payload, returns success condition and return data, forwards all available gas, adjustable

The data is given as a single bytes array, so you will likely want to decode it using abi.decode in order to make use of it.

Prior to version 0.5.0, you can count on the fact that the return values remains on the stack when the call() returns. They can be accessed, but you will have to use assembly.

According to solidity documentationthe Solidity documentation, using solc >=starting from version 0.5.0 give you the possibilityit is possible to readaccess the return valuesdata from a call, even if you shall be required to use properly the return values, knowing what they are:

address.call(bytes memory) returns (bool, bytes memory)address.call(bytes memory) returns (bool, bytes memory)

issue low-level CALLCALL with the given payload, returns success condition and return data, forwards all available gas, adjustable

See:

solidity docsThe data is given as a single bytes array, so you will likely want to decode it using abi.decode in order to make use of it.

Before that this, using solc <Prior to version 0.5.0, you can count on the fact that the return values remains on the stack when the call()call() returns. This permitThey can be accessed, but you will have to access them usinguse assembly.

According to solidity documentation, using solc >= 0.5.0 give you the possibility to read return values from a call, even if you shall be required to use properly the return values, knowing what they are

address.call(bytes memory) returns (bool, bytes memory)

issue low-level CALL with the given payload, returns success condition and return data, forwards all available gas, adjustable

See:

solidity docs

Before that this, using solc < 0.5.0, you can count on the fact that the return values remains on the stack when the call() returns. This permit you to access them using assembly.

According to the Solidity documentation, starting from version 0.5.0 it is possible to access the return data from a call:

address.call(bytes memory) returns (bool, bytes memory)

issue low-level CALL with the given payload, returns success condition and return data, forwards all available gas, adjustable

The data is given as a single bytes array, so you will likely want to decode it using abi.decode in order to make use of it.

Prior to version 0.5.0, you can count on the fact that the return values remains on the stack when the call() returns. They can be accessed, but you will have to use assembly.

Source Link
Rick Park
  • 3.2k
  • 2
  • 9
  • 25

According to solidity documentation, using solc >= 0.5.0 give you the possibility to read return values from a call, even if you shall be required to use properly the return values, knowing what they are

address.call(bytes memory) returns (bool, bytes memory)

issue low-level CALL with the given payload, returns success condition and return data, forwards all available gas, adjustable

See:

solidity docs

Before that this, using solc < 0.5.0, you can count on the fact that the return values remains on the stack when the call() returns. This permit you to access them using assembly.