Skip to content

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

@s6056826

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions