Skip to content

Commit 44c13b9

Browse files
Refactor contract condition mapping for improved readability in policyUtils.ts
1 parent 56ae522 commit 44c13b9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/gas-station/src/policyUtils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ export function buildIntentSigningPolicy(config: {
108108
// Build OR conditions for each allowed contract
109109
// Convert to lowercase for case-insensitive comparison
110110
const contractConditions = config.restrictions.allowedContracts
111-
.map(
112-
(c) => `eth.eip_712.message['to'] == '${c.toLowerCase()}'`,
113-
)
111+
.map((c) => `eth.eip_712.message['to'] == '${c.toLowerCase()}'`)
114112
.join(" || ");
115113
conditions.push(`(${contractConditions})`);
116114
}

0 commit comments

Comments
 (0)