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 {
|
if connected == true && err == nil {
|
||||||
conn, err := client.WaitForCapabilityOrClose(ta.tokenServiceOnion, applications.HasTokensCapability)
|
conn, err := client.WaitForCapabilityOrClose(ta.tokenServiceOnion, applications.HasTokensCapability)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
powtapp, ok := conn.App().(*applications.TokenApplication)
|
powtapp := conn.App().(*applications.TokenApplication)
|
||||||
if ok {
|
if powtapp != nil {
|
||||||
// Update tokens...we need a lock here to prevent SpendToken from modifying the tokens
|
// Update tokens...we need a lock here to prevent SpendToken from modifying the tokens
|
||||||
// during this process..
|
// during this process..
|
||||||
log.Debugf("Transcript: %v", powtapp.Transcript().OutputTranscriptToAudit())
|
log.Debugf("Transcript: %v", powtapp.Transcript().OutputTranscriptToAudit())
|
||||||
|
|
Loading…
Reference in New Issue