Use a different check for PoWApp casting
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Sarah Jamie Lewis 2021-09-09 15:42:31 -07:00
parent 2dc4325e1f
commit 83bf6559a2
1 changed files with 2 additions and 2 deletions

View File

@ -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())