Skip to content

Commit

Permalink
clean code in handleTransfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Liuhaai committed Jan 12, 2023
1 parent 22bf29b commit 6469a53
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions action/protocol/account/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ import (
const TransferSizeLimit = 32 * 1024

// handleTransfer handles a transfer
func (p *Protocol) handleTransfer(ctx context.Context, act action.Action, sm protocol.StateManager) (*action.Receipt, error) {
tsf, ok := act.(*action.Transfer)
if !ok {
return nil, nil
}
func (p *Protocol) handleTransfer(ctx context.Context, tsf *action.Transfer, sm protocol.StateManager) (*action.Receipt, error) {
var (
fCtx = protocol.MustGetFeatureCtx(ctx)
actionCtx = protocol.MustGetActionCtx(ctx)
Expand Down

0 comments on commit 6469a53

Please sign in to comment.