(Object... optionalArgs)
| 4476 | } |
| 4477 | |
| 4478 | public Object checkAddress(Object... optionalArgs) |
| 4479 | { |
| 4480 | Object address = Helpers.getArg(optionalArgs, 0, null); |
| 4481 | if (Helpers.isTrue(Helpers.isEqual(address, null))) |
| 4482 | { |
| 4483 | throw new InvalidAddress((String)Helpers.add(this.id, " address is undefined")) ; |
| 4484 | } |
| 4485 | // check the address is not the same letter like 'aaaaa' nor too short nor has a space |
| 4486 | Object uniqChars = (this.unique(this.stringToCharsArray(address))); |
| 4487 | Object length = Helpers.getArrayLength(uniqChars); // py transpiler trick |
| 4488 | if (Helpers.isTrue(Helpers.isTrue(Helpers.isTrue(Helpers.isEqual(length, 1)) || Helpers.isTrue(Helpers.isLessThan(((String)address).length(), this.minFundingAddressLength))) || Helpers.isTrue(Helpers.isGreaterThan(Helpers.getIndexOf(address, " "), Helpers.opNeg(1))))) |
| 4489 | { |
| 4490 | throw new InvalidAddress((String)Helpers.add(Helpers.add(Helpers.add(Helpers.add(Helpers.add(this.id, " address is invalid or has less than "), String.valueOf(this.minFundingAddressLength)), " characters: \""), String.valueOf(address)), "\"")) ; |
| 4491 | } |
| 4492 | return address; |
| 4493 | } |
| 4494 | |
| 4495 | public Object findMessageHashes(Client client, Object element) |
| 4496 | { |
no test coverage detected