Skip to content

Commit

Permalink
chore: [sc-261980] Update PbClient, add timeout height input (#137)
Browse files Browse the repository at this point in the history
* Update PbClient dependency from 1.3.0 to latest, 2.4.3

* Add optional timeout height field to broadcast options
  • Loading branch information
rpatel-figure committed Dec 7, 2023
1 parent 1d91309 commit d2db2fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ import cosmos.tx.v1beta1.ServiceOuterClass.BroadcastMode
data class BroadcastOptions(
val broadcastMode: BroadcastMode = BroadcastMode.BROADCAST_MODE_BLOCK,
val sequenceOffset: Int = 0,
val baseAccount: BaseAccount? = null
val baseAccount: BaseAccount? = null,
val timeoutHeight: Long? = null
)
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class DefaultACExecutor(
val signerAddress = signer.address()
val account = options.baseAccount ?: pbClient.authClient.getBaseAccount(signerAddress)
return pbClient.estimateAndBroadcastTx(
txBody = msg.toAny().toTxBody(),
txBody = msg.toAny().toTxBody(timeoutHeight = options.timeoutHeight),
signers = BaseReqSigner(
signer = signer,
sequenceOffset = options.sequenceOffset,
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mockk = "1.13.5"
objectstore-gateway = "3.3.2"
okhttp = "4.11.0"
protobuf = "3.23.0"
provenance-client = "1.3.0"
provenance-client = "2.4.3"
provenance-hdwallet = "0.1.15"
provenance-proto = "1.15.0"
provenance-scope = "0.6.4"
Expand Down

0 comments on commit d2db2fd

Please sign in to comment.