question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Failed to execute" error when calling contract method

See original GitHub issue

I am trying to implement a Proxy contract that uses delegatecall to proxy method calls to a proxied contract. When I attempt to call one of the proxied method await proxyContract.synthetixProxy().call();, tronweb returns “Failed to execute” and its transaction object looks like:

{ visible: false,
  txID:
   'ca5bc1666d60656d245379fe54336a2e17950963d5c5f5a0b4cc6627650d2e51',
  raw_data:
   { contract: [ [Object] ],
     ref_block_bytes: '3f09',
     ref_block_hash: '3ac9c15edcb67855',
     expiration: 1583557074000,
     fee_limit: 1000000000,
     timestamp: 1583557016105 },
  raw_data_hex:
   '0a023f0922083ac9c15edcb6785540d0b8ed9a8b2e5a6d081f12690a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412340a1541a8a07f09def5e6a4462df90068c11abf6224e865121541337f3081a1fd68f222ccc0c398691ccf811e734b2204bdd1248270a9f4e99a8b2e90018094ebdc03' }

I am not sure how to further debug this issue. From what I understand, the problem is that the transaction does not contain a constant_result property. Why not? How can I debug this issue… I’m lost.

I could provide full code to reproduce if it helps.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

7reactions
Lefgkcommented, Aug 29, 2020

could you give the solution pls ?

1reaction
frankwei98commented, Sep 10, 2020

could you share the solution pls? your experience can help a lot of tron devs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to call view method of NEAR contract - Stack Overflow
This is to init your contract: near call $CONTRACT new --account_id ... /integrator/errors/error-implementation#hosterror enum as suggested
Read more >
solidity - Function call error in ethereum smart contract
In the options object passed to the signTransaction function, add this: to: transaction._parent._address. Note that if this (which you have ...
Read more >
How to Debug the Most Common Solidity Smart Contract Errors
If a transaction fails to meet even a single condition, the contract considers it invalid and reverts its execution. In the case of...
Read more >
Function Call - NEAR Protocol Specification
MethodResolveError occurs when the method in the action cannot be found in the contract code. WasmTrap error happens when a trap occurs during ......
Read more >
Tips To Handle RPC Request Errors - Chainstack Blog
Next, it tries to execute the smart contract method. If everything works, it returns the data but if it fails… On error, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found