use of org.ethereum.rpc.CallArguments in project rskj by rsksmart.
the class CallArgumentsToByteArrayTest method getGasPriceWhenValueIsNull.
@Test
public void getGasPriceWhenValueIsNull() throws Exception {
CallArguments args = new CallArguments();
CallArgumentsToByteArray byteArrayArgs = new CallArgumentsToByteArray(args);
Assert.assertArrayEquals(new byte[] { 0 }, byteArrayArgs.getGasPrice());
}
use of org.ethereum.rpc.CallArguments in project rskj by rsksmart.
the class CallArgumentsToByteArrayTest method getGasPriceWhenValueIsEmpty.
@Test
public void getGasPriceWhenValueIsEmpty() throws Exception {
CallArguments args = new CallArguments();
args.setGasPrice("");
CallArgumentsToByteArray byteArrayArgs = new CallArgumentsToByteArray(args);
Assert.assertArrayEquals(new byte[] { 0 }, byteArrayArgs.getGasPrice());
}
use of org.ethereum.rpc.CallArguments in project rskj by rsksmart.
the class CallArgumentsToByteArrayTest method getToAddressWhenValueIsNull.
@Test
public void getToAddressWhenValueIsNull() throws Exception {
CallArguments args = new CallArguments();
CallArgumentsToByteArray byteArrayArgs = new CallArgumentsToByteArray(args);
Assert.assertNull(byteArrayArgs.getToAddress());
}
use of org.ethereum.rpc.CallArguments in project rskj by rsksmart.
the class CallArgumentsToByteArrayTest method getDataWhenValueIsNull.
@Test
public void getDataWhenValueIsNull() throws Exception {
CallArguments args = new CallArguments();
CallArgumentsToByteArray byteArrayArgs = new CallArgumentsToByteArray(args);
Assert.assertNull(byteArrayArgs.getData());
}
use of org.ethereum.rpc.CallArguments in project rskj by rsksmart.
the class NestedContractsTest method buildArgs.
private CallArguments buildArgs(String toAddress, String data) {
final CallArguments args = new CallArguments();
args.setTo(toAddress);
// call to contract
args.setData("0x" + data);
args.setValue("0");
args.setNonce("1");
args.setGas("10000000");
return args;
}
Aggregations