mirror of
https://github.com/logos-co/optimism-bridge-snt.git
synced 2025-01-12 06:55:17 +00:00
fe1a4e96ab
The `onlyBridge` modifier uses strings as error messages which are expensive in gas. This commit refactors this to use a custom error type instead and also introduces some basic tests to ensure the errors are emitted properly. It also adds some sanity tests for minting and burning bridge tokens.