• Register
0 votes

Problem :

I am new to Etherdelta. I want to deposit the token on Etherdelta from the Myetherwallet wallet but I am facing below error. My token is already created and also my contract is validated. I can send the tokens from my address holding the tokens but if I try to send them from the receiver address, I get the error.

Warning! error encountered during contract execution [bad instruction]”

I am trying to fix this error from past 2 days but still unable to fix it. Can somebody guide me in fixing above error?

8 4 2
2,300 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

I have faced this issue earlier and I know it is very tough for beginners to fix it.

I guess your issue is related to EqualToken it assesses a fee for each transfer, so even if you have already approved EtherDelta to take some number of tokens but the concern here is that you can actually transfer only that number of tokens less your fee, which is I think just 1%.

I can tell you that based on the current balance that you have and a required 1% fee considering them you can still transfer the 29411.1564788 tokens to the EtherDelta. And you can try again with the amount you have.

5 2 1
4,980 points
0 votes


recipes is a dynamic storage array. You require to alter the size of the array to include new elements to it. You can either perform this by apparently increasing the length of the array or by shoving a new element into the array.

function addRecipe(uint256 _price, string _name, string _content) public {
    recipes[recipeCount].price = _price;
    recipes[recipeCount].name = _name;
    recipes[recipeCount].content = _content;
    recipes[recipeCount].recipeOwner = msg.sender;



function addRecipe(uint256 _price, string _name, string _content) public {
    Recipe memory r;
    r.price = _price;
    r.name = _name;
    r.content = _content;
    r.recipeOwner = msg.sender;



The code is so probably easy that the only issue would appear to be with onlyOwner. I would inspect the value of the owner variable. I bet it's not what you conceive it is. (It's either zero or the value of the sender who opened the contract). You didn't give the address of the contract, so I can't inspect the value of owner on Etherscan. In addition you're not giving the address of the calling account. In case they don't match, the transaction will throw, which (as is true of all Ethereum errors) will report out of gas. In case the code is truly as easy as you tell, the only probable issue is with owner

10 6 4
31,120 points

Related questions

0 votes
1 answer 4 views
Any idea?
asked Dec 19, 2020 TeamScript 9.2k points
0 votes
1 answer 1.8K views
Problem : I am a completely novice in the hibernate world and facing below error, WARN: GenerationTarget encountered exception accepting command : Error executing DDL via JDBC Statement org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL via JDBC Statement The ... hibernate 4 version all my code runs very well. I looked for many solutions but they are not working for me.
asked Feb 4, 2020 jwilliam 3.9k points
0 votes
1 answer 171 views
Problem : While doing the drupal 6 to 7 upgrade I am facing a not so helpful message "The website encountered an unexpected error. Please try again later." everytime I go to the certain pages. example) /admin/config What is a best way to find out what is causing ... it? All I can think of right now is to start disabling the contributed modules until that the page works or looking through a logs.
asked Jan 21, 2020 jwilliam 3.9k points
0 votes
1 answer 136 views
Problem : I am trying to run my registration jsp page with the servlet. But it is throwing following error: The server encountered an internal error that prevented it from fulfilling this request. java.lang.NullPointerException com.java.task11.utils.ValidateUtil.EmailVal( ... .tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:62) I am unable to figure out why this is happening? Any clues?
asked Dec 2, 2019 alecxe 7.5k points
0 votes
1 answer 1K views
Problem : I am trying to host the asp.net 5 application on the azure, the code is complied for the beta8, my application runs fine on the local environment but when i publish the code on the azure site. I am facing a common error as follows: "The specified CGI application encountered an error and the server terminated the process."
asked Nov 27, 2019 alecxe 7.5k points
0 votes
1 answer 34 views
Problem: I have fundamental knowledge in PHP. Now days I keep getting this PHP error: Fatal error: Maximum execution time of 300 seconds exceeded. I have already tried setting up my max_execution_time and also my max_input_time settings in the php.ini for ... max_input_time settings to five seconds and then my script will run way beyond the five seconds before again face the same above error.
asked Aug 3, 2020 Raphael Pacheco 4.9k points
1 vote
1 answer 40 views
Problem : I am very new to XAMPP, MYSQL and phpMyAdmin. I have the MYSQL table which contains nearly the 7 million records. When I try to access the big table from my phpMyAdmin I always face below error: Fatal error: Maximum execution time of 30 seconds ... a maximum execution time to the maximum possible value. I am very confused about this error so looking for help on this XAMPP error.
asked May 18, 2020 Martin K 6.6k points
1 vote
1 answer 251 views
Problem : I am very beginner to Android and Firebase. I am taking help of tutorials to learn Android Programming. I am trying to add the Firebase-database to my Android application and I am facing below error: FAILURE: Build failed with an exception. ·         What went ... to get full insights. I am stuck with above Android error. Need some expert who can help me in fixing above Android error.
asked May 16, 2020 Martin K 6.6k points
0 votes
1 answer 34 views
Problem : I am new to Android Programming. I have started working on it recently. Now I am facing below error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.transform.api.TransformException: com.android.ide.common. ... have added too many Gradle dependencies, but all those dependencies are important for my project. Have anybody faced this issue?
asked Feb 28, 2020 mphil 2.3k points
0 votes
1 answer 386 views
Problem : I want to set up the hello world example with AWS lambda and serving it through the api gateway. I clicked a "Create a Lambda Function", which set up a api gatway and selected a Blank Function option. I added a lambda function found on AWS ... response { "message": "Internal server error" }. And my logs say "Execution failed due to configuration error: Malformed Lambda proxy response".
asked Jan 22, 2020 jwilliam 3.9k points