diff --git a/contracts/contracts/StakingEscrow.sol b/contracts/contracts/StakingEscrow.sol index 0a8d738a..1aba6eda 100644 --- a/contracts/contracts/StakingEscrow.sol +++ b/contracts/contracts/StakingEscrow.sol @@ -131,7 +131,7 @@ contract StakingEscrow is Upgradeable, IERC900History { * @param staker Staker address * @param value Amount wrapped (in NuNits) */ - event WrappedAndTopedUp(address indexed staker, uint256 value); + event WrappedAndToppedUp(address indexed staker, uint256 value); struct StakerInfo { uint256 value; @@ -344,7 +344,7 @@ contract StakingEscrow is Upgradeable, IERC900History { tToken.approve(address(tStaking), tTokenAmount); tStaking.topUp(info.stakingProvider, uint96(tTokenAmount)); info.value = remainder; - emit WrappedAndTopedUp(msg.sender, wrappedTokenAmount); + emit WrappedAndToppedUp(msg.sender, wrappedTokenAmount); } /** diff --git a/contracts/contracts/testnet/OpenAccessAuthorizer.sol b/contracts/contracts/testnet/OpenAccessAuthorizer.sol index 77e81c6d..b94b71e0 100644 --- a/contracts/contracts/testnet/OpenAccessAuthorizer.sol +++ b/contracts/contracts/testnet/OpenAccessAuthorizer.sol @@ -10,7 +10,6 @@ interface IEncryptionAuthorizer { ) external view returns (bool); } - contract OpenAccessAuthorizer is IEncryptionAuthorizer { function isAuthorized( uint32, diff --git a/tests/staking_escrow/test_staking_escrow.py b/tests/staking_escrow/test_staking_escrow.py index 8032ac27..1166980c 100644 --- a/tests/staking_escrow/test_staking_escrow.py +++ b/tests/staking_escrow/test_staking_escrow.py @@ -476,8 +476,8 @@ def test_wrap( assert t_token.balanceOf(threshold_staking.address) == value assert t_token.balanceOf(vending_machine.address) == TOTAL_SUPPLY - value - events = escrow.WrappedAndTopedUp.from_receipt(tx) - assert events == [escrow.WrappedAndTopedUp(staker=staker, value=value)] + events = escrow.WrappedAndToppedUp.from_receipt(tx) + assert events == [escrow.WrappedAndToppedUp(staker=staker, value=value)] # Wrap again but with remainder other_value = Web3.to_wei(15_000, "ether") + 1 @@ -494,5 +494,5 @@ def test_wrap( assert t_token.balanceOf(threshold_staking.address) == expected_value assert t_token.balanceOf(vending_machine.address) == TOTAL_SUPPLY - expected_value - events = escrow.WrappedAndTopedUp.from_receipt(tx) - assert events == [escrow.WrappedAndTopedUp(staker=other_staker, value=other_value - 1)] + events = escrow.WrappedAndToppedUp.from_receipt(tx) + assert events == [escrow.WrappedAndToppedUp(staker=other_staker, value=other_value - 1)]