** IRREEEUM -Deployment Problems in Remixen: Instructions to Remove an Error “No Transaction Payment” Error.
As developers who use the Remix, he probably made mistakes in providing contracts for the Ethereum network. The general problem arises is the “transaction not to be paid” error that can occur when using a remix -based Build device. In this article, we examine the causes of the error and gradually offer solutions to fix the solutions.
What is “transaction you don’t have to pay”?
The “transaction is not paid transaction is not payable” error occurs when the remix tries to provide a contract that does not have enough ether (Ether) in the Metamask letter pocket. This can happen if you do not pay a contract with a feature or if your contract applies a payment what you want.
The reasons for the “non -payable” reasons for the “transaction not payable”
Here are some general reasons for this mistake:
- Functions consumed : Contracts that do not pay for their own provisions, eg. B. Functions that do not return (0x) or take arguments may cause the remix that the transaction does not have to be paid.
- Pay-Mi-Mit-Treaty : A paid contract that you can lead to desire, as the remix does not know how much ether it needs to be calculated.
- False Metamask letter pocket balance : If the metamask letter bag does not have enough ETH to cover the costs, the remix is ”available”.
Symptoms
If you do not enter the “transaction” error on the remix:
- The error message appears when you click
- Your contract is successfully used but the transaction fails
- You will get an error message like
0x ...
Step -by -step solutions to remedy the “Don’t Pay Transaction” error.
Follow the following steps not to correct the “Don’t Submit Transaction” Error:
1. Update remix and metamast letters
Be sure to run the latest version of the Remix (4.2.10 or higher) and that the Metamask Letter pocket is up to date.
2. Check your contract installation syntax
Check the contract installation syntax to make sure that it complies with the typical format of Ethereum contracts. Find unpaid functions, approaches in the contract codex for unpaid approaches or incorrect arguments.
3 .. check the metamask leaf pocket balance
Make sure the metamask leaf bag has a sufficient etheric balance to cover the operating costs. You can check this by checking your wallet balance on the remix.
`Javascript
console.log (metamask.balance ());
If you are not sure of the wallpaper balance, try refreshing the remix or wait for a short time until the balance is updated.
4.
You can use the contracts directly from the Remix through the “Web3.eth 部署 Contract” function directly from the remix to specify the contract’s disposal syntax.
`Javascript
Const web3 = needs ("Web3");
Const deploymer = new web3.eth.dloymentcontract ();
// Replace the contract address and ABI for actual contractual data
Deployer.deploy (contract title, ABI);
5. Remix Run in DebT mode
If you enter contracts on the remix, you can make the application in a debug mode to display more detailed error messages.
`Javascript
Remix Run-Debug Installation Agreement
If the “Web3.eth 部署 Contract” method does not return an error message such as “0x …”, try to do the remix in a debug mode:
`Bash
Remix Run-Debug Installation Agreement
If you take these steps, you should be able to unlock the “transaction will not pay” error on the remix and successfully secure the contract. If the problem continues, you can give you more details of the project or contract code and do my best to help you!