multiple arrays that must be same length is better represented as array of structs
Closed this issue · 2 comments
moodysalem commented
permit2/src/interfaces/IAllowanceTransfer.sol
Lines 36 to 43 in be76f11
for readability, this might better be represented as array of structs, something like:
struct Permit {
address token;
uint32 nonce;
uint160 amount;
uint64 expiry;
}
struct PermitSingle {
Permit permit;
address spender;
}
struct PermitBatch {
Permit[] permits;
address spender;
}
snreynolds commented
this structure will also allow passing in a nonce per "permit" for AllowanceTransfer batchPermit
snreynolds commented
closed with #98