Skip to content

Refactor createNewAccount function to be an internal function and remove unused password argument #815

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
merged 280 commits into from
May 3, 2023

Conversation

jskskjnekd
Copy link

Summary of Changes

This pull request refactors the createNewAccount function to be an internal function and removes the password
argument, which is never used in the function. The existing test cases have been run and all passed, showing that this change does not affect their functionality.

Test Data or Screenshots

By submitting this pull request, you are confirming the following:
  • I have reviewed the Contribution Guidelines.
  • I have performed a self-review of my own code.
  • I have updated my repository to match the develop branch.
  • I have included test data or screenshots that prove my fix is effective or that my feature works.
  • I have checked that all tests work and swiftlint is not throwing any errors/warnings.

cclauss and others added 30 commits January 29, 2023 18:56
…ct-usage-removed

fix: replaced AnyObject with Any
* develop-upstream:
  chore: EIP681 docs + more descriptive log message
  fix: ENS parsing requires chainID if an ENS address is expected to be requested/decoded - we do not assume that client is using Ethereum Mainnet!
  fix: RLP func encode for single value has named parameter
  chore: test refactoring - checking for nullability by using XCTAssertNotNil
  chore: replaced [Any]() with [] for default parameter value
  fix: removed as AnyObject from ENS related code
  chore: removed spacing in `" )`
  fix: spacings
  chore: removed redundant `parameters: []` in read operation
  fix: EIP681 - when parsing arguments chain ID must be defaulted to Mainnet instead of 0
  fix: Networks.fromInt must not return optional
  fix: some spacing and docs fixed
  fix: ERC20BaseProperties are back to inherit from AnyObject (restricting protocol to classes)
  fix: removed the use of AnyObject in all places possible - replaced with Any

# Conflicts:
#	Tests/web3swiftTests/localTests/ABIEncoderTest.swift
#	Tests/web3swiftTests/localTests/TransactionsTests.swift
Copy link
Collaborator

@janndriessen janndriessen left a comment

Choose a reason for hiding this comment

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

LGTM! But possibly should be pointed to v4 branch? @JeneaVranceanu @yaroslavyaroslav

JeneaVranceanu
JeneaVranceanu previously approved these changes May 2, 2023
@JeneaVranceanu
Copy link
Collaborator

@janndriessen You are right. I'll point that to v4.

@sunyaojin Meanwhile please use func createNewChildAccount.

@JeneaVranceanu JeneaVranceanu changed the base branch from develop to develop-4.0 May 2, 2023 07:20
@JeneaVranceanu JeneaVranceanu dismissed their stale review May 2, 2023 07:20

The base branch was changed.

@JeneaVranceanu
Copy link
Collaborator

@sunyaojin I'll update develop-4.0 and maybe after that will ask you to merge develop-4.0 into your branch before we will merge this update.

@JeneaVranceanu JeneaVranceanu mentioned this pull request May 2, 2023
@yaroslavyaroslav
Copy link
Collaborator

Dear Lord, I wish to not to be the one who will solve this

Comment on lines +109 to +110
var transaction = transaction ?? defaultTransaction
transaction.to = resolver.resolverContractAddress
Copy link
Collaborator

Choose a reason for hiding this comment

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

As a result of fixing merge conflicts, I've added a couple of variable renamings.

Copy link
Collaborator

Choose a reason for hiding this comment

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

From options to transaction.

@JeneaVranceanu JeneaVranceanu merged commit c66d204 into web3swift-team:develop-4.0 May 3, 2023
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.