Skip to content

Commit

Permalink
fix: source flag (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherbrumm authored Jan 5, 2024
1 parent 2eb16cd commit dd3032a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sources/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ func GetPoolIds(chainId, source, blockPoolId, snapshotPoolId, registryUrl string
if sIdRaw == nil && snapshotPoolRequired {
return 0, 0, fmt.Errorf("source %s does not contain a snapshot-pool", source)
}
bId = int64(*bIdRaw)

bId, sId = int64(*bIdRaw), int64(*sIdRaw)
if sIdRaw != nil {
sId = int64(*sIdRaw)
}
}

if blockPoolId != "" {
Expand Down

0 comments on commit dd3032a

Please sign in to comment.