I'm trying to figure out if it's possible to retrieve the return value of a non-view function. Specifically, I want to see the return value of a newly created contract
I have created a simple setup to illustrate the problem:
pragma solidity ^0.8.0;
contract TestA {
function test() public returns (TestB) {
return new TestB();
}
}
contract TestB {
uint256 public somedata = 123;
}
Is there any way to query the blockchain for the transactions return value when calling TestA::test()
?