Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

feat: remove useless code #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,7 @@ class Resolver {

class Name {
constructor(options) {
const { name, ens, provider, signer, namehash: nh, resolver } = options
if (options.namehash) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is overridden by Line 206

this.namehash = nh
}
const { name, ens, provider, signer, resolver } = options
this.ens = ens
this.ensWithSigner = this.ens.connect(signer)
this.name = name
Expand Down