Skip to content

Commit

Permalink
Change optional primitive type to reference type
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie307 committed Aug 28, 2024
1 parent e45fcde commit 341610b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bmv/bsc2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = '0.7.0'
version = '0.7.1'

dependencies {
compileOnly("foundation.icon:javaee-api:$javaeeVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class BTPMessageVerifier implements BMV {

public BTPMessageVerifier(Address _bmc, BigInteger _chainId, @Optional byte[] _header,
@Optional byte[] _validators, @Optional byte[] _candidates,
@Optional byte[] _recents, @Optional int _currTurnLength, @Optional int _nextTurnLength) {
@Optional byte[] _recents, @Optional Integer _currTurnLength, @Optional Integer _nextTurnLength) {
ChainConfig config = ChainConfig.setChainID(_chainId);
if (_header != null) {
Header head = Header.fromBytes(_header);
Expand Down Expand Up @@ -84,7 +84,7 @@ public BTPMessageVerifier(Address _bmc, BigInteger _chainId, @Optional byte[] _h

@External(readonly = true)
public String getVersion() {
return "0.7.0";
return "0.7.1";
}

@External(readonly = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public int size() {

public int count(EthAddress cmp) {
int cnt = 0;
for (int i = 0; i < addresses.size(); i++) {
if (addresses.get(i).equals(cmp)) {
for (EthAddress address : addresses) {
if (address.equals(cmp)) {
cnt++;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import score.Context;
import score.ObjectReader;
import score.ObjectWriter;
import scorex.util.ArrayList;

import java.math.BigInteger;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public static class Deployment {
private String validators;
private String candidates;
private String recents;
private int currTurnLength;
private int nextTurnLength;
private Integer currTurnLength;
private Integer nextTurnLength;

public byte[] getHeader() {
return StringUtil.hexToBytes(header);
Expand Down

0 comments on commit 341610b

Please sign in to comment.