aionnetwork / AVM

Enabling Java code to run in a blockchain environment
https://theoan.com/
MIT License
49 stars 25 forks source link

Why is there no static initializer on Address? #400

Closed fulldecent closed 5 years ago

fulldecent commented 5 years ago

Currently usage for BigInteger is like this:

x = BigInteger(1);

This is inconsistent with how Address is used:

x = new Address(some byte array);

Is there a reason for this inconsistency?

fulldecent commented 5 years ago

Please ignore. I didn't know what I was talking about. I had gotten confused regarding BigInteger.valueOf().