0

So, I called a function from my smart contract that is supposed to return the address of a new contract instance, but I'm not sure how to read the output from the console.

This is the image of my console output:

enter image description here

2 Answers 2

2

You cannot access the return value of a transaction.

They are only available to other functions and contracts unless you are calling in read only mode, i.e. not a transaction.

Have a look here Why is it impossible to get return values of state-changing calls?

Or here https://blog.b9lab.com/calls-vs-transactions-in-ethereum-smart-contracts-62d6b17d0bc2

Hope it helps

1
  • 1
    I see. Thank you very much. I'll try to work around the problem using this information
    – HeeeeSark
    Sep 22 at 18:35
0

No, r is one of the values of the ECDSA signature. ECDSA is a digital signature algorithm that uses elliptic curve and this algorithm is used to create the key pairs used in the signing and verification process of digital signatures.

See:

What does v, r, s in eth_getTransactionByHash mean?

1
  • ah, I see. In that case, what is the address that is supposed to be returned?
    – HeeeeSark
    Sep 22 at 2:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.