Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmaxwell committed Feb 21, 2025
1 parent e524b1f commit 2915fb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gno.land/pkg/integration/testdata/grc20_registry.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ gnokey maketx call -pkgpath gno.land/r/registry -func TransferByName -args 'foo2
stdout 'not found'

# add foo20, and foo20wrapper
gnokey maketx addpkg -pkgdir $WORK/foo20 -pkgpath gno.land/r/foo20 -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/foo20wrapper -pkgpath gno.land/r/foo20wrapper -gas-fee 1000000ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/foo20 -pkgpath gno.land/r/foo20 -gas-fee 1000000ugnot -gas-wanted 11000000 -broadcast -chainid=tendermint_test test1
gnokey maketx addpkg -pkgdir $WORK/foo20wrapper -pkgpath gno.land/r/foo20wrapper -gas-fee 1000000ugnot -gas-wanted 11000000 -broadcast -chainid=tendermint_test test1

# we call Transfer with foo20, after it's registered
gnokey maketx call -pkgpath gno.land/r/registry -func TransferByName -args 'foo20' -args 'g123456789' -args '42' -gas-fee 1000000ugnot -gas-wanted 8000000 -broadcast -chainid=tendermint_test test1
Expand Down
4 changes: 1 addition & 3 deletions gnovm/pkg/gnolang/realm.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func checkCrossRealm2(rlm *Realm, store Store, tv *TypedValue, seenObjs []Object
if debug {
debug.Printf("checkCrossRealm2, tv: %v (type: %v) \n", tv, reflect.TypeOf(tv.V))
}
fillValueTV(store, tv)
oo2 := tv.GetFirstObject2(store)
if oo2 != nil {
// if it is checking a pointer, and it
Expand Down Expand Up @@ -701,7 +702,6 @@ func (rlm *Realm) processNewEscapedMarks(store Store) {
// except for new-reals that get demoted
// because ref-count isn't >= 2.
for _, eo := range rlm.newEscaped {
//fmt.Println("eo: ", eo)
if debug {
if !eo.GetIsNewEscaped() {
panic("new escaped mark not marked as new escaped")
Expand All @@ -724,7 +724,6 @@ func (rlm *Realm) processNewEscapedMarks(store Store) {

// add to escaped, and mark dirty previous owner.
po := getOwner(store, eo)
//fmt.Println("po: ", po)
if po == nil {
// e.g. !eo.GetIsNewReal(),
// should have no parent.
Expand All @@ -743,7 +742,6 @@ func (rlm *Realm) processNewEscapedMarks(store Store) {
panic("new escaped object has no object ID")
}
// escaped has no owner.
//fmt.Println("set owner to be nil")
eo.SetOwner(nil)
}
}
Expand Down

0 comments on commit 2915fb4

Please sign in to comment.