-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Error: Could not set null
as the transaction hash (deploying with {overwrite: false}
)
#836
Comments
This may well be a bug with Truffle. I got things working by removing: |
@elie222 Could you link to or show the code that results in this error, including the 'deploy code'? It would also be helpful if you provided steps to reproduce it. |
@elie222 I'm going to close this because it's quite difficult from your issue description to tell what state your contracts are in when this error occurs. Feel free to re-open when you can provide more detail. |
Just ran into this same issue again unfortunately. Funny how when I googled it this was the top response :( This is a sample of some of the problematic code:
|
Again the solution was to get rid of |
I'm also seeing this issue when using Using Truffle v4.1.3, Solidity v0.4.19 |
Deploying code in separate files is not an option for me, my codebase is too big to deploy at once and therefore, I need to be able to deploy in stages. Is there a valid work around for this? It is the same error with me, I have {overwrite: false} in my contracts and libraries as like I said, I cant deploy all of my code at once. Migrations 1:
Migrations 2:
Migrations 3 (I've cut the variables out to keep it short):
Full trace of error:
However, when I look into SaleStagesLib.json in the build folder, I see this at the bottom of the file:
Strangely enough, the contents of /usr/local/lib/node_modules/truffle/build/ are:
With no webpack, so I cant find the line of code that throws the error. |
@JackPickering Thanks, re-opening. Will look into this and see what's going wrong . . . |
null
as the transaction hash for MyTokennull
as the transaction hash (deploying with {overwrite: false}
)
@elie222 @JackPickering Apologies, it looks we introduced this bug in |
Fix for this has been released in Truffle v4.1.6. Closing for issue maintenance. Let us know if the problem persists! Thanks! |
That's not a patch. That's a new release with other things changed. Borked. |
Any ideas why this is happening in Truffle 4.1.0?
COT inherits from StandardToken and doesn't do much else.
Environment
truffle version
): Truffle v4.1.0 (core: 4.1.0) Solidity v0.4.19 (solc-js)node --version
): v8.4.0npm --version
): 5.7.1The text was updated successfully, but these errors were encountered: