Skip to content

Commit 5998fea

Browse files
committedMar 16, 2022
Fix issue with CCIP Read using wrong sender (#2478).

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/providers/src.ts/base-provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ export class BaseProvider extends Provider implements EnsProvider {
845845
async ccipReadFetch(tx: Transaction, calldata: string, urls: Array<string>): Promise<null | string> {
846846
if (this.disableCcipRead || urls.length === 0) { return null; }
847847

848-
const sender = (tx.from || "0x0000000000000000000000000000000000000000").toLowerCase();
848+
const sender = tx.to.toLowerCase();
849849
const data = calldata.toLowerCase();
850850

851851
const errorMessages: Array<string> = [ ];

0 commit comments

Comments
 (0)
Please sign in to comment.