Examples of asObj()


Examples of org.ethereum.util.Value.asObj()

    Value num = new Value(1);
    assertEquals(num.asInt(), 1);

    Value inter = new Value(new Object[]{1});
    Object[] interExp = new Object[]{1};
    assertTrue(new Value(inter.asObj()).cmp(new Value(interExp)));

    Value byt = new Value(new byte[]{1, 2, 3, 4});
    byte[] bytExp = new byte[]{1, 2, 3, 4};
    assertTrue(Arrays.equals(byt.asBytes(), bytExp));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.