Questions tagged [return]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers

Basic function returns 0x0000000000000

I'm trying to learn Soliity and started with a basic api. I pass the parameters of the function (from here I got the format of the parameters
user avatar
  • 11
0 votes
1 answer

Retrieve a non-constant/non-view transaction's return (output) data with hardhat/ethersjs

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 ...
user avatar
  • 1,099
1 vote
0 answers

returning struct in solidity

I have seen here that we can return struct for internal functions. Why can we not just return struct for a non-internal (= public) function? Also, I can see in the same link "structs would have ...
user avatar
  • 770