Skip to content
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

Make use of Result on completion #221

Merged
merged 1 commit into from
Jun 9, 2022
Merged

Make use of Result on completion #221

merged 1 commit into from
Jun 9, 2022

Conversation

dioKaratzas
Copy link
Collaborator

@dioKaratzas dioKaratzas commented Jun 2, 2022

Its more convenience to use Result to reduce the optionals.

Resolves #219 .
That PR will open the road for the WebSocket integration #182

All the deprecated methods have been putted in extensions with // MARK: - Deprecated for easy removal

@dioKaratzas dioKaratzas changed the title Make use of Result on completion #219 Make use of Result on completion Jun 2, 2022
@dioKaratzas dioKaratzas added the enhancement New feature or request label Jun 2, 2022
@dioKaratzas dioKaratzas linked an issue Jun 2, 2022 that may be closed by this pull request
@dioKaratzas
Copy link
Collaborator Author

dioKaratzas commented Jun 2, 2022

Test "testEthSendRawTransaction" fails. My changes don't affect that test. It is failing even on the master. Please take a look on it.

Error failed - Expected tx but failed executionError(Code: -32000 Message: insufficient funds for gas * price + value).

It seems that the test Account is out of money 💵

{Update}
Sent Eth(Faucet) to the ropsten address and the test passed!

let resolver = try await getResolver(
for: address,
registryAddress: registryAddress,
mode: mode
)
let resolver = try await getResolver(for: address,
registryAddress: registryAddress,
mode: mode)
Copy link
Member

Choose a reason for hiding this comment

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

are you running formatter on your side? Because it's polluting all meaningful changes for reviewing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes its formatter, wasn't intended though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@DarthMike I reverted all the unrelated formatted changes.

Copy link
Member

Choose a reason for hiding this comment

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

great 👍

- EthereumClient
- ThereumClient+Call
- JSONRPC
- EthereumClient+Static
- ERC20

Refactor ERC165

Refactor:

- ERC165
- ERC721
- Multicall

Refactor: EthereumNameService
@DarthMike DarthMike merged commit 2e3087a into argentlabs:develop Jun 9, 2022
@dioKaratzas dioKaratzas deleted the use_result branch June 10, 2022 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make use of Result on completion
2 participants