Skip to content

Commit

Permalink
better use the machine API
Browse files Browse the repository at this point in the history
  • Loading branch information
tbruyelle committed Jun 21, 2023
1 parent 18eb207 commit ddbab8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnovm/cmd/gno/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ func runTestFiles(
m.RunFiles(n)
// XXX Affect an ID to testmain so it doesn't trigger a panic when
// realm.FinalizeRealmTransaction() is invoked
oo := m.Package.FBlocks[len(m.Package.FBlocks)-1]
m.Realm.AssignNewObjectID(oo.(*gno.Block))
oo := m.Package.GetFileBlock(m.Store, n.Name)
m.Realm.AssignNewObjectID(oo)

for _, test := range testFuncs.Tests {
if verbose {
Expand Down

0 comments on commit ddbab8a

Please sign in to comment.