Questions tagged [returndata]

the value of the data that is returned from the last function call during a single transaction

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Cannot get returned signature

I have met a problem when I am developing a Metamask installed Dapp. I am using web3.personal.sign()to get the signature of accounts. However, I could not get the returned signature string from this ...
0
votes
1answer
32 views

How to get the return value of a contract from a contract call?

If a contract does returns something, (whether a string or return true/return false) how to get it’s return value ? I mean where does the return value is stored ? Is necessary to use RETURNDATACOPY or ...
2
votes
1answer
14 views

Solidity: How to replace specific string position with letter?

I would like to replace a letter at a specific position of a string with another letter. function _stringReplace(string memory _string, uint256 _pos, string memory _letter) internal pure returns (...
0
votes
1answer
21 views

Get return data from sendSignedTransaction

I need access to data returned by function that also changes state. Example: I have a contract live on testnet with a function that creates and then returns a new ERC20 token. contract MyContract { ...
0
votes
1answer
25 views

Why no error of return value?

In the following code, I am returning a wrong value but there is no syntax error: pragma solidity ^0.5.1; contract C1 { function g(uint a) public returns (uint) { f(a); } function f(uint) public ...
0
votes
0answers
24 views

Why does return address(player) return a weird string?

I am trying to get the player's address through front end and when I run through the solidity function that should return the player's address, it would return ...
0
votes
2answers
45 views

Why does fallback cause exception when expecting return value?

I want to understand, what happens under the hoods in this (very unsafe, but educative) example. contract Actual { function () external { } } interface Expected { function g() external ...
1
vote
1answer
29 views

Is it possible to get a function's original returndata if it is wrapped in an interface that doesn't return anything?

Will a function's returndata persist through a wrapper, even if the wrapper does not support a return value? An example would be as follows: contract OriginalContract { function originalFunction()...