Open albttx opened 1 year ago
EDIT: this is just a go test
problem, running with gnodev
works perfectly
Issue is because TestStore()
is creating a *Machine
, so we loose the (*m.Machine).Context
https://github.com/gnolang/gno/blob/master/tests/imports.go#L100-L106
And then call m2.RunMemPackage()
When you create a Token, or anything that require the Realm to have his own treasury, the best would be in the
init()
function to be able to do:Which is not possibe at the moment because the the
(m *Machine).Context
isnil
instd.GetOrigPkgAddr
.