Skip to content

Commit

Permalink
panic on misuse
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed Jul 2, 2024
1 parent aa5c19f commit f361223
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fuzzing/calls/call_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ func NewCallMessageWithAbiValueData(from common.Address, to *common.Address, non
// WithDataAbiValues resets the call message's data and ABI values, ensuring the values are in sync and
// reusing the other existing fields.
func (m *CallMessage) WithDataAbiValues(abiData *CallMessageDataAbiValues) {
if abiData == nil {
logging.GlobalLogger.Panic("Method ABI and data should always be defined")
}

// Pack the ABI value data
var data []byte
var err error
Expand Down

0 comments on commit f361223

Please sign in to comment.