Skip to content

Commit

Permalink
fixes paths to mock contracts in scroll hardhat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-de-leon-cll committed Jan 5, 2024
1 parent bea23f6 commit adba249
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ contract MockScrollL2CrossDomainMessenger is IL2ScrollMessenger {
bytes calldata message
) external override {}

/// Needed for testing
/// Needed for backwards compatibility in Hardhat tests
function setSender(address newSender) external {
s_sender = newSender;
}

/// Needed for testing
/// Needed for backwards compatibility in Hardhat tests
receive() external payable {}
}
2 changes: 1 addition & 1 deletion contracts/test/v0.8/dev/ScrollSequencerUptimeFeed.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('ScrollSequencerUptimeFeed', () => {
dummy = accounts[3]

const l2CrossDomainMessengerFactory = await ethers.getContractFactory(
'src/v0.8/l2ep/test/mocks/MockScrollL2CrossDomainMessenger.sol:MockScrollL2CrossDomainMessenger',
'src/v0.8/l2ep/test/mocks/scroll/MockScrollL2CrossDomainMessenger.sol:MockScrollL2CrossDomainMessenger',
deployer,
)

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/v0.8/dev/ScrollValidator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('ScrollValidator', () => {
// Scroll Messenger contract on L1
const mockScrollL1CrossDomainMessengerFactory =
await ethers.getContractFactory(
'src/v0.8/l2ep/test/mocks/MockScrollL1CrossDomainMessenger.sol:MockScrollL1CrossDomainMessenger',
'src/v0.8/l2ep/test/mocks/scroll/MockScrollL1CrossDomainMessenger.sol:MockScrollL1CrossDomainMessenger',
)
mockScrollL1CrossDomainMessenger =
await mockScrollL1CrossDomainMessengerFactory.deploy()
Expand Down

0 comments on commit adba249

Please sign in to comment.