Skip to content

Commit e45fcde

Browse files
committed
Add test case
1 parent f3196f4 commit e45fcde

File tree

6 files changed

+39
-2
lines changed

6 files changed

+39
-2
lines changed

bmv/bsc2/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = '0.6.1'
1+
version = '0.7.0'
22

33
dependencies {
44
compileOnly("foundation.icon:javaee-api:$javaeeVersion")

bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/BTPMessageVerifier.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public BTPMessageVerifier(Address _bmc, BigInteger _chainId, @Optional byte[] _h
8484

8585
@External(readonly = true)
8686
public String getVersion() {
87-
return "0.5.0";
87+
return "0.7.0";
8888
}
8989

9090
@External(readonly = true)

bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/Snapshot.java

+3
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ public String toString() {
191191
", candidates=" + candidates +
192192
", voters=" + voters +
193193
", recents=" + recents +
194+
", attestation=" + attestation +
195+
", currTurnLength=" + currTurnLength +
196+
", nextTurnLength=" + nextTurnLength +
194197
'}';
195198
}
196199

bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/Validator.java

+7
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,11 @@ public EthAddress getAddress() {
3434
public BLSPublicKey getPublicKey() {
3535
return pubkey;
3636
}
37+
38+
@Override
39+
public String toString() {
40+
return "Validator{" +
41+
"address=" + address +
42+
'}';
43+
}
3744
}

bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/Validators.java

+8
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,12 @@ public boolean contains(BLSPublicKey pubkey) {
8181
public int size() {
8282
return validators.size();
8383
}
84+
85+
@Override
86+
public String toString() {
87+
return "Validators{" +
88+
"validators=" + validators+
89+
'}';
90+
}
91+
8492
}

bmv/bsc2/src/test/resources/testnet.json

+19
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)