Skip to content

Commit

Permalink
docs: correct spelling
Browse files Browse the repository at this point in the history
test: deploy contracts in fork tests
  • Loading branch information
andreivladbrg committed Feb 4, 2025
1 parent 081789a commit e6784c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/types/DataTypes.sol
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ library Lockup {
/// @param funder The address which has funded the stream.
/// @param sender The address distributing the tokens, which is able to cancel the stream.
/// @param recipient The address receiving the tokens, as well as the NFT owner.
/// @param depositAmount The deposita amount, both denoted in units of the token's decimals.
/// @param depositAmount The deposit amount, both denoted in units of the token's decimals.
/// @param token The contract address of the ERC-20 token to be distributed.
/// @param cancelable Boolean indicating whether the stream is cancelable or not.
/// @param transferable Boolean indicating whether the stream NFT is transferable or not.
Expand Down
16 changes: 10 additions & 6 deletions tests/fork/Fork.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ pragma solidity >=0.8.22 <0.9.0;

import { IERC20Metadata } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { ILockupNFTDescriptor } from "src/interfaces/ILockupNFTDescriptor.sol";
import { ISablierBatchLockup } from "src/interfaces/ISablierBatchLockup.sol";
import { ISablierLockup } from "src/interfaces/ISablierLockup.sol";

// import { ILockupNFTDescriptor } from "src/interfaces/ILockupNFTDescriptor.sol";
// import { ISablierBatchLockup } from "src/interfaces/ISablierBatchLockup.sol";
// import { ISablierLockup } from "src/interfaces/ISablierLockup.sol";

import { Base_Test } from "./../Base.t.sol";

Expand Down Expand Up @@ -35,10 +36,13 @@ abstract contract Fork_Test is Base_Test {
// Fork Ethereum Mainnet at a specific block number.
vm.createSelectFork({ blockNumber: 21_719_029, urlOrAlias: "mainnet" });

Base_Test.setUp();

// TODO: update once the contracts are deployed.
// Load deployed addresses from Ethereum mainnet.
batchLockup = ISablierBatchLockup(0x3F6E8a8Cffe377c4649aCeB01e6F20c60fAA356c);
nftDescriptor = ILockupNFTDescriptor(0xA9dC6878C979B5cc1d98a1803F0664ad725A1f56);
lockup = ISablierLockup(0x7C01AA3783577E15fD7e272443D44B92d5b21056);
// batchLockup = ISablierBatchLockup(0x3F6E8a8Cffe377c4649aCeB01e6F20c60fAA356c);
// nftDescriptor = ILockupNFTDescriptor(0xA9dC6878C979B5cc1d98a1803F0664ad725A1f56);
// lockup = ISablierLockup(0x7C01AA3783577E15fD7e272443D44B92d5b21056);

// Create a custom user for this test suite.
forkTokenHolder = payable(makeAddr(string.concat(IERC20Metadata(address(FORK_TOKEN)).symbol(), "_HOLDER")));
Expand Down

0 comments on commit e6784c1

Please sign in to comment.