Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

normal commit #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions src/main/java/org/web3j/sample/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@ private void run() throws Exception {

// We then need to load our Ethereum wallet file
// FIXME: Generate a new wallet file using the web3j command line tools https://docs.web3j.io/command_line.html
Credentials credentials =
WalletUtils.loadCredentials(
"<password>",
"/path/to/<walletfile>");
log.info("Credentials loaded");


// FIXME: Request some Ether for the Rinkeby test network at https://www.rinkeby.io/#faucet
log.info("Sending 1 Wei ("
Expand Down Expand Up @@ -103,11 +99,6 @@ private void run() throws Exception {
// contract to the blockchain. Index events cannot be logged in their entirety.
// For Strings and arrays, the hash of values is provided, not the original value.
// For further information, refer to https://docs.web3j.io/filters.html#filters-and-events
for (Greeter.ModifiedEventResponse event : contract.getModifiedEvents(transactionReceipt)) {
log.info("Modify event fired, previous value: " + event.oldGreeting
+ ", new value: " + event.newGreeting);
log.info("Indexed event previous value: " + Numeric.toHexString(event.oldGreetingIdx)
+ ", new value: " + Numeric.toHexString(event.newGreetingIdx));
}

}
}