@@ -109,7 +109,7 @@ func (p *Protocol) handleCreateStake(ctx context.Context, act *action.CreateStak
109
109
}
110
110
}
111
111
// put updated staker's account state to trie
112
- if err := accountutil .StoreAccount (csm , actionCtx .Caller . String () , staker ); err != nil {
112
+ if err := accountutil .StoreAccount (csm , actionCtx .Caller , staker ); err != nil {
113
113
return log , errors .Wrapf (err , "failed to store account %s" , actionCtx .Caller .String ())
114
114
}
115
115
@@ -225,7 +225,7 @@ func (p *Protocol) handleWithdrawStake(ctx context.Context, act *action.Withdraw
225
225
}
226
226
}
227
227
// put updated withdrawer's account state to trie
228
- if err := accountutil .StoreAccount (csm , actionCtx .Caller . String () , withdrawer ); err != nil {
228
+ if err := accountutil .StoreAccount (csm , actionCtx .Caller , withdrawer ); err != nil {
229
229
return log , errors .Wrapf (err , "failed to store account %s" , actionCtx .Caller .String ())
230
230
}
231
231
@@ -404,7 +404,7 @@ func (p *Protocol) handleDepositToStake(ctx context.Context, act *action.Deposit
404
404
}
405
405
}
406
406
// put updated depositor's account state to trie
407
- if err := accountutil .StoreAccount (csm , actionCtx .Caller . String () , depositor ); err != nil {
407
+ if err := accountutil .StoreAccount (csm , actionCtx .Caller , depositor ); err != nil {
408
408
return log , errors .Wrapf (err , "failed to store account %s" , actionCtx .Caller .String ())
409
409
}
410
410
@@ -554,7 +554,7 @@ func (p *Protocol) handleCandidateRegister(ctx context.Context, act *action.Cand
554
554
}
555
555
}
556
556
// put updated caller's account state to trie
557
- if err := accountutil .StoreAccount (csm , actCtx .Caller . String () , caller ); err != nil {
557
+ if err := accountutil .StoreAccount (csm , actCtx .Caller , caller ); err != nil {
558
558
return log , errors .Wrapf (err , "failed to store account %s" , actCtx .Caller .String ())
559
559
}
560
560
0 commit comments