Skip to content

Commit

Permalink
remove unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Sep 3, 2024
1 parent ec9d00e commit e6bae3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/opchild/keeper/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/initia-labs/OPinit/x/opchild/types"
)

func (k Keeper) handleBridgeHook(ctx sdk.Context, sender sdk.AccAddress, data []byte) (success bool, reason string) {
func (k Keeper) handleBridgeHook(ctx sdk.Context, data []byte) (success bool, reason string) {
defer func() {
if r := recover(); r != nil {
reason = fmt.Sprintf("panic: %v", r)
Expand Down
2 changes: 1 addition & 1 deletion x/opchild/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ func (ms MsgServer) FinalizeTokenDeposit(ctx context.Context, req *types.MsgFina

// if the deposit is successful and the data is not empty, execute the hook
if success && len(req.Data) > 0 {
success, reason := ms.handleBridgeHook(sdkCtx, toAddr, req.Data)
success, reason := ms.handleBridgeHook(sdkCtx, req.Data)
event = event.AppendAttributes(sdk.NewAttribute(types.AttributeKeyHookSuccess, strconv.FormatBool(success)))
event = event.AppendAttributes(sdk.NewAttribute(types.AttributeKeyHookReason, reason))
}
Expand Down

0 comments on commit e6bae3f

Please sign in to comment.