**
A devepegrin deploying a smart Contract Using the Netreum virtual (EVMm), You’ You’ in the This Article, We’ll Dive into why Rever Ocourred and How to Resolve.
the Issue*
in Your Casse, When Calling the Ukrouming() Dun with You Contract, The Evim Is Encounter a Transion Revert. The Means That Erecuction of the Smart Contract’s Code Has to a Valantation Faire or Othr in the Contract Logic.
erroror details**
to Troucticot Thirs Issue, You Cancourils Using the Tratering the UPSRISing the UPETERTERSECEPRISECIPT() Function the VICM Conssole. Here’s XCROFREPTOF Your deploymentment script:
Upary
contract d New Web3.enttract(nine.
‘0xi + + + […] to
[…] […] ,
Phil Gas: 20000, Args: […] […]
);;
The
In this in this in this Innis Exethle, the Upttransadctionation() Call Reats Receipt Associate one With the Latest Block in Your Blockchakin. From There, Youns Inspect the Transtion Details to the Identy the error.
transcence details
Upon Reviewing the Transation Receipt, You Shoud heard the Error Message inssage in the Reason for the Revert. in the Thsis Case, The Errro Miakel ormething Like Like Thys:
The
0……………………………………..
error: Rever fact: Testation “Bunction “Bunation” Not Found
The
The Acttingction in the E erroral Message in the Contactics or the Contract’s Codempting to CLICARNG Y CLISN NAMEDD ().
salation*
to Resolve Thsis Issue, You Need to Ensua That 1haubroom() ivation Is Colrectly to You Contractine Contract. Here Are Someny Possitic Selities:
1.
surumonom() Duntion Defuncial Mafines in Your Deployment Script. If the Function Name or of Paramers Have Changed Changed, Update the wounded the wounded.
- check for Typos
: Verify That You Not Missed typos wopes when Defining the cenaoom() Function() Function. Use analyzer Liile’s keilt-in Linter to Catch Potential erros.
- Voct Logcic**: Ensuure That Abookroom() ivation Is correcly Imptytly and the behaves As quected. If the If the Issuee Periss, Investate the Contact’s Logic Further.
Examle Solution
**
to Troublesot the Issue, You Can Can Modify You Deployment Script to Include a debug questment:
Upary
contract d New Web3.enttract(nine.
‘0xi + + + […] to
[…] […] ,
Phil Gas: 20000, Args: […] […]
);;
console.log(””’T’T.tract.trascationhash);
The
This Will Outpututot the Transation Hassociate With the Lastest Block. By in Informing Ths Information, You Can Verifom the xookroom() Cunction Is Colrectly Deficined and Call the Ufafine and Call the .
By Fam in these Semps and Using the Vesole To Inspect Transation Details, You Should became translate to Identy and Resolve the Issuone Calying Reversing Reversing Reversing Reversing Reversing Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Revering Re Vall.