diff --git a/protocol/connections/tokenboardclientapp.go b/protocol/connections/tokenboardclientapp.go index 4244db7..df85e2b 100644 --- a/protocol/connections/tokenboardclientapp.go +++ b/protocol/connections/tokenboardclientapp.go @@ -185,8 +185,8 @@ func (ta *TokenBoardClient) MakePayment() error { if connected == true && err == nil { conn, err := client.WaitForCapabilityOrClose(ta.tokenServiceOnion, applications.HasTokensCapability) if err == nil { - powtapp, ok := conn.App().(*applications.TokenApplication) - if ok { + powtapp := conn.App().(*applications.TokenApplication) + if powtapp != nil { // Update tokens...we need a lock here to prevent SpendToken from modifying the tokens // during this process.. log.Debugf("Transcript: %v", powtapp.Transcript().OutputTranscriptToAudit())