oz upgrade command look for an
function and calls it by default?
I am asking because I just used
oz upgrade and when I selected I want to call a function and selected my initialize function - it failed.
However, when I
oz upgrade without selecting to call
initiialize the upgrade went through
I didnt change the
initizialize function in my contract one single bit between the first deployment via
oz create where I did select to call
initialize and the
oz upgrade where I also selected to
initialize (and the tx reverted).
I asked because maybe my first
oz upgradein the above pictures is
always failingdue to the
initializer modifieralready throwing from my suspected OZ CLI default call to
Btw I tried to call
oz upgrade was completed successful in the second attempt in the pic above, and I got the same error.
So my assumption that the error is due to
oz CLI calling
initialize by default when using
oz upgrade seem to be correct
If it is that way, I think this should be made more explicit at the command line that
initialize is already being called in the background.
oz --version 2.5.3