Skip to content

Commit

Permalink
check if prefix is actual selector
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanrikulu committed Aug 22, 2023
1 parent 873d201 commit b453566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class MockProvider extends BaseProvider {
): Promise<{ transaction: TransactionRequest; result: BytesLike }> {
let result = await provider.parent.perform('call', params);

if (!result.startsWith('0x556f1830')) {
if (!result.startsWith('0x556f1830') || result.length % 128 != 10) {
// iface: OffchainLookup(address,string[],bytes,bytes4,bytes)
return {
transaction: params.transaction,
Expand Down

0 comments on commit b453566

Please sign in to comment.