From c4d429d0df2a28fded87fdca1dc51760ddba03e5 Mon Sep 17 00:00:00 2001 From: Luca Moser Date: Fri, 5 Apr 2019 09:13:11 +0200 Subject: [PATCH] use addrs with checksum when polling --- account/account_test.go | 2 +- account/plugins/transfer/poller/poller.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account/account_test.go b/account/account_test.go index 0d27dffb5..b916c0865 100644 --- a/account/account_test.go +++ b/account/account_test.go @@ -1,7 +1,6 @@ package account_test import ( - "gopkg.in/h2non/gock.v1" "github.com/iotaledger/iota.go/account/builder" "github.com/iotaledger/iota.go/account/deposit" "github.com/iotaledger/iota.go/account/event" @@ -15,6 +14,7 @@ import ( "github.com/iotaledger/iota.go/trinary" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + "gopkg.in/h2non/gock.v1" "strings" "time" diff --git a/account/plugins/transfer/poller/poller.go b/account/plugins/transfer/poller/poller.go index 1cdae9871..6fd49c5b4 100644 --- a/account/plugins/transfer/poller/poller.go +++ b/account/plugins/transfer/poller/poller.go @@ -160,7 +160,7 @@ func (tp *TransferPoller) checkIncomingTransfers(depositRequests map[uint64]*sto if req.TimeoutAt == nil { continue } - addr, err := tp.setts.AddrGen(keyIndex, req.SecurityLevel, false) + addr, err := tp.setts.AddrGen(keyIndex, req.SecurityLevel, true) if err != nil { return errors.Wrap(err, "unable to compute deposit address in incoming transfers op.") }