Skip to content

Commit fc0f832

Browse files
Khushboo-dev-cppalaibe
authored andcommitted
fix(ens)_: Adding implementation to fetch for owner with name wrapper
contract, in case the name wrapper contract is returned when checking ens name ownership
1 parent 86f092b commit fc0f832

File tree

6 files changed

+2513
-1
lines changed

6 files changed

+2513
-1
lines changed

contracts/contracts.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"github.com/status-im/status-go/contracts/resolver"
1515
"github.com/status-im/status-go/contracts/snt"
1616
"github.com/status-im/status-go/contracts/stickers"
17+
"github.com/status-im/status-go/contracts/namewrapper"
1718
"github.com/status-im/status-go/rpc"
1819
)
1920

@@ -217,3 +218,11 @@ func (c *ContractMaker) NewBalanceChecker(chainID uint64) (*balancechecker.Balan
217218
backend,
218219
)
219220
}
221+
222+
func (c *ContractMaker) NewNameWrapper(chainID uint64, address *common.Address) (*namewrapper.Namewrapper, error) {
223+
backend, err := c.RPCClient.EthClient(chainID)
224+
if err != nil {
225+
return nil, err
226+
}
227+
return namewrapper.NewNamewrapper(*address, backend)
228+
}

0 commit comments

Comments
 (0)