Use a different check for PoWApp casting
This commit is contained in:
parent
2dc4325e1f
commit
83bf6559a2
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue