Skip to content

Commit 58b9ee3

Browse files
committed
support stonfi code blessing
1 parent 3ac7695 commit 58b9ee3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

abi/inspect.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,17 @@ func getCodeInfo(ctx context.Context, code []byte, resolver libResolver) (*codeI
235235
// we are OK, if there is no information about get methods
236236
return &codeInfo{hash: h}, nil
237237
}
238+
if c.IsLibrary() {
239+
hash, err := c.GetLibraryHash()
240+
if err != nil {
241+
return nil, err
242+
}
243+
cell, ok := libs[ton.Bits256(hash)]
244+
if !ok {
245+
return nil, fmt.Errorf("library not found")
246+
}
247+
c = cell
248+
}
238249
type GetMethods struct {
239250
Hashmap tlb.Hashmap[tlb.Uint19, boc.Cell]
240251
}

0 commit comments

Comments
 (0)