Skip to content

Commit

Permalink
support stonfi code blessing
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron committed Aug 16, 2024
1 parent 3ac7695 commit 58b9ee3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions abi/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,17 @@ func getCodeInfo(ctx context.Context, code []byte, resolver libResolver) (*codeI
// we are OK, if there is no information about get methods
return &codeInfo{hash: h}, nil
}
if c.IsLibrary() {
hash, err := c.GetLibraryHash()
if err != nil {
return nil, err
}
cell, ok := libs[ton.Bits256(hash)]
if !ok {
return nil, fmt.Errorf("library not found")
}
c = cell
}
type GetMethods struct {
Hashmap tlb.Hashmap[tlb.Uint19, boc.Cell]
}
Expand Down

0 comments on commit 58b9ee3

Please sign in to comment.