Skip to content

ENS interface cleanup #681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

pharms-eth
Copy link
Collaborator

No description provided.

return supports
}

public func interfaceImplementer(forNode node: String, interfaceID: String) async throws -> EthereumAddress {
guard let nameHash = NameHash.nameHash(node) else {throw Web3Error.processingError(desc: "Failed to get name hash")}
guard let transaction = self.resolverContract.createReadOperation("interfaceImplementer", parameters: [nameHash, interfaceID] as [AnyObject], extraData: Data() ) else {throw Web3Error.transactionSerializationError}
guard let transaction = self.resolverContract.createReadOperation("interfaceImplementer", parameters: [nameHash, interfaceID] as [AnyObject]) else {throw Web3Error.transactionSerializationError}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@janndriessen @yaroslavyaroslav I've decided to remove from all createReadOperation and createWriteOperation calls the extraData: Data() arguments as Data() is the default value for the extraData in these functions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

nice and clean 🧹 ✅

@JeneaVranceanu JeneaVranceanu merged commit e2b248d into web3swift-team:develop Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants