Commit Graph

3 Commits

Author SHA1 Message Date
r4bbit fe1a4e96ab
refactor: use custom error type instead of error strings (#18)
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.
2023-10-06 08:37:32 +02:00
r4bbit 4a7a10ee33
refactor: move to foundry template 2023-09-26 16:58:36 +02:00
Ricardo Guilherme Schmidt aaba029cb8
add bridge code 2023-07-17 13:59:00 -03:00