Content pfp
Content
@
0 reply
0 recast
2 reactions

0age pfp
0age
@0age
torn on an interface choice and would love some opinions here we've got an array of (uint256, uint256) pairs, used in both an EIP712 payload and a function arg is it best to: * use 2 uint256[] arguments & ensure they're the same length * use 1 uint256[2][] argument * use an array of structs with 2 uint256 elements
7 replies
0 recast
45 reactions

0age pfp
0age
@0age
2 uint256[] args is gonna be way cheaper to build an EIP712 hash for 1 uint256[2][] arg is going to have the smallest memory footprint by default the struct is arguably the "cleanest" from the perspective of interface clarity you could also use two versions, one for the function call and one for the EIP712 payload
0 reply
0 recast
3 reactions