base-org / paymaster

MIT License
141 stars 46 forks source link

How long will the paymasterAndData expire? #20

Closed PengDeng-Cyber closed 1 year ago

mdehoog commented 1 year ago

Currently there is no expiration, but that may change in the future, or have different values on different chains.

You can generally assume that bytes 20 to 84 (exclusive) contain two ABI encoded uint48s that represent the validUntil and validAfter values. See https://github.com/base-org/paymaster/blob/fc47a5f5ae1a3d9eca016c267d1ca5bce0a2cb52/src/Paymaster.sol#L88.