From 9f824f2cfd7199a9a247c6ffa4fe84ed2d6215f4 Mon Sep 17 00:00:00 2001 From: Rayerleier <1045643889@qq.com> Date: Fri, 6 Dec 2024 20:52:53 +0800 Subject: [PATCH] fixed: some spell --- script/Deploy_All.s.sol | 4 ++-- test/iBTC_NetworkMiddleware.t.sol | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/script/Deploy_All.s.sol b/script/Deploy_All.s.sol index ec269a5..352d3dc 100644 --- a/script/Deploy_All.s.sol +++ b/script/Deploy_All.s.sol @@ -26,7 +26,7 @@ contract DeployAll is Script { address constant COLLATERAL_ADDRESS = 0xeb762Ed11a09E4A394C9c8101f8aeeaf5382ED74; // eth sepolia uint256 constant MAX_WITHDRAW_AMOUNT = 1e9; // 10 iBTC uint256 constant MIN_WITHDRAW_AMOUNT = 1e4; - address constant GLOABAL_RECEIVER = 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC; //NOTE third address + address constant GLOBAL_RECEIVER = 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC; //NOTE third address // Replace with the correct checksummed addresses address constant VAULT_FACTORY = 0x407A039D94948484D356eFB765b3c74382A050B4; // Replace with deployed VaultFactory address @@ -52,7 +52,7 @@ contract DeployAll is Script { owner: owner, collateral: collateral, delay: 0, //NOTE we can set a delay - globalReceiver: GLOABAL_RECEIVER, + globalReceiver: GLOBAL_RECEIVER, networkReceivers: networkReceiver, operatorNetworkReceivers: operatorNetworkReceiver }); diff --git a/test/iBTC_NetworkMiddleware.t.sol b/test/iBTC_NetworkMiddleware.t.sol index 94a19c3..fd463bb 100644 --- a/test/iBTC_NetworkMiddleware.t.sol +++ b/test/iBTC_NetworkMiddleware.t.sol @@ -60,7 +60,7 @@ contract iBTC_NetworkMiddlewareTest is Test { address constant NETWORK = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // first address network should be a multisig contract address constant OWNER = 0x70997970C51812dc3A010C7d01b50e0d17dc79C8; // second address - address constant GLOABAL_RECEIVER = 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC; //NOTE third address + address constant GLOBAL_RECEIVER = 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC; //NOTE third address uint48 constant EPOCH_DURATION = 7 days; // uint48 constant NETWORK_EPOCH = 5 days; @@ -120,7 +120,7 @@ contract iBTC_NetworkMiddlewareTest is Test { owner: OWNER, collateral: COLLATTERAL, delay: 0, //NOTE we can set a delay - globalReceiver: GLOABAL_RECEIVER, + globalReceiver: GLOBAL_RECEIVER, networkReceivers: networkReceiver, operatorNetworkReceivers: operatorNetworkReceiver }); @@ -352,7 +352,7 @@ contract iBTC_NetworkMiddlewareTest is Test { assertEq( iBTC_networkMiddleware.getOperatorStake(alice, epoch), iBTC_delegator.stake(NETWORK.subnetwork(0), alice), - "stake should same" + "stake should be the same" ); uint256 cachedStake = iBTC_networkMiddleware.calcAndCacheStakes(epoch);