Skip to content

Commit

Permalink
Add getVersion interface to bsc2 and btpblock BMVs
Browse files Browse the repository at this point in the history
  • Loading branch information
sink772 committed Dec 21, 2023
1 parent 910e173 commit 569ff61
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 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.1.0'
version = '0.5.0'

dependencies {
compileOnly("foundation.icon:javaee-api:$javaeeVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ public BTPMessageVerifier(Address _bmc, BigInteger _chainId, @Optional byte[] _h
}
}

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

@External(readonly = true)
public BMVStatus getStatus() {
MerkleTreeAccumulator mta = this.mta.get();
Expand Down
2 changes: 1 addition & 1 deletion bmv/btpblock/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = '0.1.0'
version = '0.5.0'

dependencies {
compileOnly("foundation.icon:javaee-api:$javaeeVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public byte[][] handleRelayMessage(String _bmc, String _prev, BigInteger _seq, b
return ret;
}

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

@External(readonly = true)
public BMVStatus getStatus() {
var properties = getProperties();
Expand Down

0 comments on commit 569ff61

Please sign in to comment.