From dd3032a48c9442fe3b7ec62e188e09177f6fe938 Mon Sep 17 00:00:00 2001 From: Christopher Brumm <97845034+christopherbrumm@users.noreply.github.com> Date: Fri, 5 Jan 2024 09:46:36 +0100 Subject: [PATCH] fix: source flag (#40) --- sources/sources.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sources/sources.go b/sources/sources.go index 2984150..0fdff77 100644 --- a/sources/sources.go +++ b/sources/sources.go @@ -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 != "" {