Skip to content

Commit

Permalink
fix: eth sender retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
byte-bandit committed Aug 30, 2024
1 parent 1a9630e commit 956fa20
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion chain/evm/compass.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,14 @@ func (t compass) processMessages(ctx context.Context, queueTypeName string, msgs
var tx *ethtypes.Transaction
var valsetID uint64
msg := rawMsg.Msg.(*evmtypes.Message)
ethSender, err := t.findAssigneeEthAddress(ctx, msg.Assignee)
ethSender, err := func() (common.Address, error) {
// Do not retrieve eth sender for UploadSmartContract messages
switch msg.GetAction().(type) {
case *evmtypes.Message_UploadSmartContract:
return common.Address{}, nil
}
return t.findAssigneeEthAddress(ctx, msg.Assignee)
}()
if err != nil {
return res, fmt.Errorf("failed to find assignee eth address: %w", err)
}
Expand Down

0 comments on commit 956fa20

Please sign in to comment.