You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#376 made a change that makes the following happen:
var myTrie = new Trie();
var vm = new VM({
state: myTrie,
activatePrecompiles: true
});
myTrie.root.equals(myTrie.EMPTY_TRIE_ROOT); // true
myTrie.root.equals(vm.statemanager._trie.root); // false
opts.state is no longer used by the internal StateManager. Is this intentional?
The text was updated successfully, but these errors were encountered:
Just checked, this is actually only happening with the combination of also setting activatePrecompiles: true you're applying above. In the code there is then the trie newly instantiated (see code).
I would very much assume that this is a bug and should be fixed, any other opinions why this mgith be there and if it could have a reasoning?
I think it was just missed in the nit of refactoring done in #376, seems like a bug to me.
For ganache-core we can temporarily work around it by creating the precompile entries in our own state trie, and set activatePrecompiles to false when creating the VM instance.
Thanks for the detailed answer, will try to do a big fix release on this anyhow ASAP. This is a serious bug and shouldn't be left in the code for too long.
#376 made a change that makes the following happen:
opts.state
is no longer used by the internal StateManager. Is this intentional?The text was updated successfully, but these errors were encountered: