-
-
Notifications
You must be signed in to change notification settings - Fork 130
Conversation
Hey @hellwolf, thanks for raising this PR! We probably want to support something like automatic argument encoding in the future, but for now I think it is a good workaround to provide the encoded args, so I'm happy to merge in this change. One thing though is that it would be nice to be able to use this without also having to use the address override, so I'd suggest either using a different separator character for the args (e.g. |
Hi! I agree that using an option is a better way, but I don't know the code enough to make such suggested changes. The workaround was a quick hack I had to make. If you could point me some hint how to add an option that'd be helpful for me to modify it |
Alright, no worries! If you want to take it on, I wrote this article which explains Truffle plugins in a bit more detail: https://kalis.me/creating-truffle-plugins/ What it boils down to is that any flags (e.g. Then from there truffle-plugin-verify includes a So if you want to add a new flag Let me know if that makes sense or if you need some more help. Thanks again! |
It was actually quite easy to do: BUT, it doesn't work for one of our cases because
🤦 🤦 🤦 🤦 🤦 I probably would need to hack the command line format to avoid this problem, like
Do you have any thoughts on this? |
Oh wow that is interesting. I'm guessing it gets converted by Truffle, let me look into it more. |
I propose this workaround format:
string denoting the type, and the following is the actual value |
@rkalis what do you think of the above proposal, a optional argument "forceConstructorArgs" with prefixed type "string:" as workaround to the truffle issue. |
- Change logging order/priority - Update README
Hey @hellwolf, sorry for dropping the ball on this one. The solution seems a good workaround. I made a few minor changes and updated the README. Will publish this in a new version now. |
Just published this new feature in |
Constructor arguments override (Optional)
You can additionally provide an explicit constructor arguments for the contract. This is useful if the contract was created by another contract instead by an EOA.
This feature has to be used together with the address overriding, e.g.: