Skip to content

Commit

Permalink
Fix issue with CCIP Read using wrong sender (#2478).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Mar 16, 2022
1 parent dfaa8ee commit 5998fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/providers/src.ts/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ export class BaseProvider extends Provider implements EnsProvider {
async ccipReadFetch(tx: Transaction, calldata: string, urls: Array<string>): Promise<null | string> {
if (this.disableCcipRead || urls.length === 0) { return null; }

const sender = (tx.from || "0x0000000000000000000000000000000000000000").toLowerCase();
const sender = tx.to.toLowerCase();
const data = calldata.toLowerCase();

const errorMessages: Array<string> = [ ];
Expand Down

0 comments on commit 5998fea

Please sign in to comment.