Skip to content

Commit

Permalink
add named interface
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Aug 6, 2024
1 parent 63c4698 commit ed54ead
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions e2e/runner/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,13 @@ func (l *Logger) ZRC20Withdrawal(
}
}

type depositParser interface {
ParseDeposit(ethtypes.Log) (*gatewayevm.GatewayEVMDeposit, error)
}

// GatewayDeposit prints a GatewayDeposit event
func (l *Logger) GatewayDeposit(
contract interface {
ParseDeposit(ethtypes.Log) (*gatewayevm.GatewayEVMDeposit, error)
},
contract depositParser,
receipt ethtypes.Receipt,
name string,
) {
Expand Down

0 comments on commit ed54ead

Please sign in to comment.