java-conflux-sdk
java-conflux-sdk copied to clipboard
Conflux Java SDK
Hi folks, I tried to use two threads to make different contract calls. Sometimes their responses may interfere with each other. For this test, I defined the following class. ```...
public String _mint(Option option, Address to, BigInteger tokenId) throws Exception { return this.account.call(option, this.contract, "_mint", new Type[]{to, new Uint256(tokenId)}); } public String _mint(Option option, CfxAddress to, BigInteger tokenId) throws Exception...
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))
This change is [](https://reviewable.io/reviews/conflux-chain/java-conflux-sdk/43)
`Files.delete` and `Files.list` usage have Path Traversal, will fix it in next release