Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
b371ef63
Commit
b371ef63
authored
Mar 30, 2023
by
James Kim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename tests
parent
2f015f90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
OptimistAllowlist.t.sol
...periphery/contracts/foundry-tests/OptimistAllowlist.t.sol
+5
-5
No files found.
packages/contracts-periphery/contracts/foundry-tests/OptimistAllowlist.t.sol
View file @
b371ef63
...
@@ -138,7 +138,7 @@ contract OptimistAllowlist_Initializer is Test {
...
@@ -138,7 +138,7 @@ contract OptimistAllowlist_Initializer is Test {
}
}
contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
function test_constructor_succe
s
s() external {
function test_constructor_succe
ed
s() external {
// expect attestationStation to be set
// expect attestationStation to be set
assertEq(address(optimistAllowlist.ATTESTATION_STATION()), address(attestationStation));
assertEq(address(optimistAllowlist.ATTESTATION_STATION()), address(attestationStation));
assertEq(optimistAllowlist.ALLOWLIST_ATTESTOR(), alice_allowlistAttestor);
assertEq(optimistAllowlist.ALLOWLIST_ATTESTOR(), alice_allowlistAttestor);
...
@@ -158,7 +158,7 @@ contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
...
@@ -158,7 +158,7 @@ contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
/**
/**
* @notice After receiving a valid allowlist attestation, the account should be able to mint.
* @notice After receiving a valid allowlist attestation, the account should be able to mint.
*/
*/
function test_isAllowedToMint_fromAllowlistAttestor_succe
s
s() external {
function test_isAllowedToMint_fromAllowlistAttestor_succe
ed
s() external {
attestAllowlist(bob);
attestAllowlist(bob);
assertTrue(optimistAllowlist.isAllowedToMint(bob));
assertTrue(optimistAllowlist.isAllowedToMint(bob));
}
}
...
@@ -167,7 +167,7 @@ contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
...
@@ -167,7 +167,7 @@ contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
* @notice After receiving a valid attestation from the Coinbase Quest attestor,
* @notice After receiving a valid attestation from the Coinbase Quest attestor,
* the account should be able to mint.
* the account should be able to mint.
*/
*/
function test_isAllowedToMint_fromCoinbaseQuestAttestor_succe
s
s() external {
function test_isAllowedToMint_fromCoinbaseQuestAttestor_succe
ed
s() external {
attestCoinbaseQuest(bob);
attestCoinbaseQuest(bob);
assertTrue(optimistAllowlist.isAllowedToMint(bob));
assertTrue(optimistAllowlist.isAllowedToMint(bob));
}
}
...
@@ -176,7 +176,7 @@ contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
...
@@ -176,7 +176,7 @@ contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
* @notice Account that received an attestation from the OptimistInviter contract by going
* @notice Account that received an attestation from the OptimistInviter contract by going
* through the claim invite flow should be able to mint.
* through the claim invite flow should be able to mint.
*/
*/
function test_isAllowedToMint_fromInvite_succe
s
s() external {
function test_isAllowedToMint_fromInvite_succe
ed
s() external {
inviteAndClaim(bob);
inviteAndClaim(bob);
assertTrue(optimistAllowlist.isAllowedToMint(bob));
assertTrue(optimistAllowlist.isAllowedToMint(bob));
}
}
...
@@ -226,7 +226,7 @@ contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
...
@@ -226,7 +226,7 @@ contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
/**
/**
* @notice Having multiple signals, even if one is invalid, should still allow minting.
* @notice Having multiple signals, even if one is invalid, should still allow minting.
*/
*/
function test_isAllowedToMint_withMultipleAttestations_succe
s
s() external {
function test_isAllowedToMint_withMultipleAttestations_succe
ed
s() external {
attestAllowlist(bob);
attestAllowlist(bob);
attestCoinbaseQuest(bob);
attestCoinbaseQuest(bob);
inviteAndClaim(bob);
inviteAndClaim(bob);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment