@@ -9,11 +9,11 @@ import (
9
9
"sync"
10
10
"time"
11
11
12
+ solanaApp "github.com/MixinNetwork/computer/apps/solana"
13
+ "github.com/MixinNetwork/computer/store"
12
14
"github.com/MixinNetwork/mixin/crypto"
13
15
"github.com/MixinNetwork/mixin/logger"
14
- solanaApp "github.com/MixinNetwork/computer/apps/solana"
15
16
"github.com/MixinNetwork/safe/common"
16
- "github.com/MixinNetwork/computer/store"
17
17
"github.com/MixinNetwork/safe/mtg"
18
18
"github.com/gagliardetto/solana-go"
19
19
"github.com/gagliardetto/solana-go/rpc"
@@ -809,8 +809,8 @@ func (node *Node) processSuccessedCall(ctx context.Context, call *store.SystemCa
809
809
if call .Type == store .CallTypeMain && ! call .SkipPostProcess {
810
810
cid := common .UniqueId (id , "post-process" )
811
811
nonce , err := node .store .ReadSpareNonceAccount (ctx )
812
- if err != nil {
813
- return err
812
+ if err != nil || nonce == nil {
813
+ return fmt . Errorf ( "store.ReadSpareNonceAccount() => %v %v" , nonce , err )
814
814
}
815
815
tx := node .CreatePostProcessTransaction (ctx , call , nonce , txx , meta )
816
816
if tx != nil {
@@ -842,8 +842,8 @@ func (node *Node) processFailedCall(ctx context.Context, call *store.SystemCall,
842
842
if call .Type == store .CallTypeMain {
843
843
cid := common .UniqueId (id , "post-process" )
844
844
nonce , err := node .store .ReadSpareNonceAccount (ctx )
845
- if err != nil {
846
- panic (err )
845
+ if err != nil || nonce == nil {
846
+ panic (fmt . Errorf ( "store.ReadSpareNonceAccount() => %v %v" , nonce , err ) )
847
847
}
848
848
tx := node .CreatePostProcessTransaction (ctx , call , nonce , nil , nil )
849
849
if tx != nil {
0 commit comments