fulldecent / aion-aip040

Reference implementation for Aion non-fungible tokens
MIT License
3 stars 3 forks source link

Add data access object #20

Closed fulldecent closed 5 years ago

fulldecent commented 5 years ago

Type safety!

Nobody wants to be writing this code all day!

        AvmRule.ResultWrapper result = avmRule.call(deployer,contractAddress,BigInteger.ZERO,
                encoder.encodeOneString("authorizeOperator")
                        .encodeOneAddress(operator)
                        .toBytes());
fulldecent commented 5 years ago

Implemented at https://github.com/fulldecent/aion-aip040/blob/master/src/main/java/org/aion/AIP040Encoder.java