Skip to content

Commit 9ffc92a

Browse files
committed
updated prefix
1 parent d4c6bb4 commit 9ffc92a

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

src/main/java/org/litetokens/studio/filesystem/SolcFileUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
@Slf4j(topic = "SolidityFileUtil")
1515
public class SolcFileUtil {
1616

17-
private static final String SOLC_RESOURCE_FILE = "/bin/" + getOS() + "/solc";
18-
private static final String SOLC_FILE = Config.SOLC_PATH + "/solc";
17+
private static final String SOLC_RESOURCE_FILE = "/bin/" + getOS() + "/solc.exe";
18+
private static final String SOLC_FILE = Config.SOLC_PATH + "/solc.exe";
1919

2020
private static String getOS() {
2121
String osName = System.getProperty("os.name").toLowerCase();

src/main/java/org/litetokens/studio/utils/Parameter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
public interface Parameter {
44

55
interface CommonConstant {
6-
byte ADD_PRE_FIX_BYTE_MAINNET = (byte) 0x41; //41 + address
6+
byte ADD_PRE_FIX_BYTE_MAINNET = (byte) 0x30; //30 + address
77
byte ADD_PRE_FIX_BYTE_TESTNET = (byte) 0xa0; //a0 + address
88
int ADDRESS_SIZE = 21;
99
}
6.47 MB
Binary file not shown.

src/test/java/stest/litetokens/wallet/common/client/Parameter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface CommonConstant {
77
String ADD_PRE_FIX_STRING = "a0";
88
int ADDRESS_SIZE = 21;
99
int BASE58CHECK_ADDRESS_SIZE = 35;
10-
byte ADD_PRE_FIX_BYTE_MAINNET = (byte) 0x41; //41 + address
10+
byte ADD_PRE_FIX_BYTE_MAINNET = (byte) 0x30; //30 + address
1111
byte ADD_PRE_FIX_BYTE_TESTNET = (byte) 0xa0; //a0 + address
1212
}
1313
}

src/test/java/stest/litetokens/wallet/common/client/utils/PublicMethed.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ public static AccountNetMessage getAccountNet(byte[] address, WalletGrpc.WalletB
536536
/* public static byte[] addPreFix(byte[] address) {
537537
Wallet.setAddressPreFixByte(CommonConstant.ADD_PRE_FIX_BYTE_MAINNET);
538538
Config config = Configuration.getByPath("testng.conf");
539-
byte ADD_PRE_FIX_BYTE_MAINNET = (byte) 0x41; //41 + address
539+
byte ADD_PRE_FIX_BYTE_MAINNET = (byte) 0x30; //30 + address
540540
byte ADD_PRE_FIX_BYTE_TESTNET = (byte) 0xa0; //a0 + address
541541
byte[] preFix = new byte[1];
542542
if (config.hasPath("net.type") && "mainnet".equalsIgnoreCase(config.getString("net.type"))) {

0 commit comments

Comments
 (0)