eos-jvm icon indicating copy to clipboard operation
eos-jvm copied to clipboard

CollectionCompress doesn't work

Open vlad-zotov opened this issue 5 years ago • 0 comments

Code sample:

@Abi
public class MyArgs {
    private List<Argument> arguments;

    public MyArgs(List<Argument> arguments) {
        this.arguments = arguments;
    }

    @CollectionCompress
    public List<Argument> getArgument() {
        return arguments;
    }
}

@Abi
public class Argument {
    private String data;

    @NameCompress
    public String getData() {
        return data;
    }
}

String hex = abiBinaryGenTransferWriter
				.squishMyArgs(args)
				.toHex();

If I pass that hex data to abi_bin_to_json I get json with empty list of arguments.

vlad-zotov avatar Jul 02 '19 13:07 vlad-zotov