-
Notifications
You must be signed in to change notification settings - Fork 169
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
[ADD] Offchain Read support (EIP-3668) for eth_call and ENS resolution #208
Conversation
#if compiler(>=5.5) && canImport(_Concurrency) | ||
|
||
@available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *) | ||
extension ENSTests { | ||
func testGivenRopstenRegistry_WhenExistingDomainName_ResolvesOwnerAddressCorrectly_Async() async { | ||
func testGivenRopstenRegistry_WhenExistingDomainName_ResolvesOwnerAddressCorrectly() async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default tests now using async/await
import XCTest | ||
import BigInt | ||
|
||
struct DummyOffchainENSResolve: ABIFunction { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our own deployed contract to test revert responses
} | ||
} | ||
|
||
enum EthersTestContract { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ethers contract which they set up for their tests, reusing those. ethers-io/ethers.js#2478
fd92f82
to
008332b
Compare
Add support for offchain read in
eth_call
, and more specifically add support for offchain ENS resolution.An example to resolve is:
offchainexample.eth
(both in ropsten and mainnet)See
https://eips.ethereum.org/EIPS/eip-3668
There's another bit of related but not the same work, but will address this here : #205