Skip to content

Commit

Permalink
fix (attempt): return padded address as result
Browse files Browse the repository at this point in the history
  • Loading branch information
kamikazechaser committed Dec 16, 2024
1 parent e367eb1 commit 419665a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/api/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ func (a *API) ccipHandler(w http.ResponseWriter, req bunrouter.Request) error {
}

// TODO: Offchain lookup is performed here
// test.eth -> 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
// For now we stub it with a test address
// *.sarafu.eth -> 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
// For now we stub it with the above test address

payload, err := a.ensProvider.SignPayload(
common.HexToAddress(r.Sender),
Expand Down
2 changes: 1 addition & 1 deletion pkg/ens/ens.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (e *ENS) SignPayload(sender common.Address, request []byte, result common.A
return "0x", err
}

resp, err := encodeABIParameters(payload.Bytes(), expiryTimestamp(), sig)
resp, err := encodeABIParameters(common.LeftPadBytes(result.Bytes(), 32), expiryTimestamp(), sig)
if err != nil {
return "0x", err
}
Expand Down

0 comments on commit 419665a

Please sign in to comment.