Skip to content

Commit

Permalink
fix javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: Usman Saleem <[email protected]>
  • Loading branch information
usmansaleem committed Jul 16, 2024
1 parent 14ce83f commit ccba20e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* JsonCallParameter param = new JsonCallParameter.JsonCallParameterBuilder()
* .withFrom(Address.fromHexString("0x..."))
* .withTo(Address.fromHexString("0x..."))
* .withGasLimit(21000L)
* .withGas(21000L)
* .withGasPrice(Wei.of(1000000000L))
* .withValue(Wei.ZERO)
* .withInput(Bytes.fromHexString("0x..."))
Expand Down Expand Up @@ -159,7 +159,7 @@ public JsonCallParameterBuilder withFrom(final Address from) {

/**
* Sets the "to" address for the {@link JsonCallParameter}. This address represents the
* recipient of the call.
* recipient of the call. It can be null for contract creation transactions.
*
* @param to the recipient's address
* @return the {@link JsonCallParameterBuilder} instance for chaining
Expand All @@ -170,10 +170,9 @@ public JsonCallParameterBuilder withTo(final Address to) {
}

/**
* Sets the gas limit for the {@link JsonCallParameter}. The gas limit specifies the maximum
* amount of gas that the call is allowed to consume. If the actual gas consumed exceeds this
* limit, the call is reverted. By default, if not specified, the gas limit is set to -1,
* indicating that it is not set.
* Sets the gas for the {@link JsonCallParameter} used for transaction execution. eth_call uses
* 0 gas but this parameter may be needed by some executions. By default, if not specified, the
* gas is set to -1, indicating that it is not set.
*
* @param gas the gas limit for the call, can be {@code null} to indicate that the gas limit is
* not set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void inputAndDataWithDifferentValueAsPayLoadCauseException() {
}

@Test
public void extraParametersAreIgnoredIgnored() throws JsonProcessingException {
public void extraParametersAreIgnored() throws JsonProcessingException {
// 0x96 = 150
final String json =
"""
Expand Down

0 comments on commit ccba20e

Please sign in to comment.