Vectorized / solady

Optimized Solidity snippets.
MIT License
2.6k stars 346 forks source link

⚡️ Optimize WebAuthn for struct case #1157

Closed Vectorized closed 2 weeks ago

Vectorized commented 2 weeks ago

Description

We'll use the struct case most often. If requireUserVerification is false, then it will be optional.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

Pull requests with an incomplete checklist will be thrown out.

github-actions[bot] commented 2 weeks ago

Gas Snapshot Comparison Report

Generated at commit : 01bbb9b445f379cbb2ff64b6daef7aee43539bff, Compared to commit : fef3cd72c0632c4219e04cdef44ae1ff5dab2cf9

Contract Name Test Name Main Gas PR Gas Diff
WebAuthnTest testChrome() 193675 193575 -100
testSafari() 193981 193881 -100
test__codesize() 10262 10229 -33