Skip to content

Commit

Permalink
use slf4j facade in all places (was not consistent);
Browse files Browse the repository at this point in the history
add getNewStateInit() helper method EmulateTransactionResult;
add devenv module - archetype for dev environment.
  • Loading branch information
neodix42 committed Oct 26, 2024
1 parent 034f219 commit c6ae3d8
Show file tree
Hide file tree
Showing 33 changed files with 4,748 additions and 4,671 deletions.
11 changes: 5 additions & 6 deletions address/src/test/java/org/ton/java/address/TestAddress.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package org.ton.java.address;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import static org.junit.Assert.assertThrows;

import java.io.IOException;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.ton.java.utils.Utils;

import java.io.IOException;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import static org.junit.Assert.assertThrows;

@Slf4j
@RunWith(JUnit4.class)
public class TestAddress {
Expand Down Expand Up @@ -107,7 +106,7 @@ public void testCompareAddress() {
public void testSaveAddress() throws IOException {
// wc 0
Address address01 = Address.of(TEST_ADDRESS_0);
log.info("full address " + address01.toString(false));
log.info("full address {}" , address01.toString(false));
log.info("bounceable address {}", address01.toString(true, true, true));
log.info("non-bounceable address {}", address01.toString(true, true, false));

Expand Down
6 changes: 3 additions & 3 deletions cell/src/main/java/org/ton/java/tlb/types/MessageFees.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.ton.java.tlb.types;

import static java.util.Objects.isNull;
import static java.util.Objects.nonNull;

import java.math.BigInteger;
import lombok.Builder;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.ton.java.utils.Utils;

@Builder
Expand Down Expand Up @@ -66,15 +66,15 @@ public static void printMessageFeesFooter() {
}

public String getSrc() {
if (nonNull(src)) {
if (StringUtils.isNotEmpty(src)) {
return src.substring(0, 7) + "..." + src.substring(src.length() - 6, src.length() - 1);
} else {
return "N/A";
}
}

public String getDst() {
if (nonNull(dst)) {
if (StringUtils.isNotEmpty(dst)) {
return dst.substring(0, 7) + "..." + dst.substring(dst.length() - 6, dst.length() - 1);
} else {
return "N/A";
Expand Down
Loading

0 comments on commit c6ae3d8

Please sign in to comment.