Skip to content

Commit

Permalink
Fix scope requests no longer including the request (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpatel-figure authored Dec 11, 2023
1 parent 6c01bd4 commit c3f6193
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,13 @@ class ProvenanceService : Provenance {
override fun getScope(config: ProvenanceConfig, scopeUuid: UUID, height: Long?): ScopeResponse =
PbClient(config.chainId, URI(config.nodeEndpoint), GasEstimationMethod.MSG_FEE_CALCULATION).use { pbClient ->
pbClient.metadataClient.scope(
ScopeRequest.newBuilder()
.setScopeId(scopeUuid.toString())
.setIncludeRecords(true)
.setIncludeSessions(true)
.also {
height?.let { pbClient.metadataClient.addBlockHeight(it.toString()) }
}
.build()
ScopeRequest.newBuilder().apply {
scopeId = scopeUuid.toString()
includeRecords = true
includeSessions = true
includeRequest = true
height?.let { pbClient.metadataClient.addBlockHeight(it.toString()) }
}.build()
)
}

Expand Down

0 comments on commit c3f6193

Please sign in to comment.