java-conflux-sdk icon indicating copy to clipboard operation
java-conflux-sdk copied to clipboard

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

Open s6056826 opened this issue 2 years ago • 0 comments

	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))

s6056826 avatar Mar 11 '23 03:03 s6056826