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

AccountManager imports(Credentials credentials, String password) 方法153行是不是有问题 #45

Open
s6056826 opened this issue Mar 11, 2023 · 0 comments

Comments

@s6056826
Copy link

	String hexAddress = AddressType.User.normalize(credentials.getAddress());
	Address address = new Address(hexAddress, this.networkId);
	if (this.exists(address)) {
		return Optional.empty();
	}
	
	this.createKeyFile(password, credentials.getEcKeyPair());
	
	return Optional.of(address);

这个address解密之后有地址,你这个if (this.exists(address)) 判断有地址然后制空吗,这正确吗,不应该是if (!this.exists(address))

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

No branches or pull requests

1 participant