Skip to content

Commit

Permalink
fix: use proper event for test_ProviderStakeAndRegister
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Jul 8, 2024
1 parent ce7f566 commit 85d29c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/test/ProviderRegistryTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contract ProviderRegistryTest is Test {
BlockTracker public blockTracker;
uint256 public blocksPerWindow;
bytes public constant validBLSPubkey = hex"80000cddeec66a800e00b0ccbb62f12298073603f5209e812abbac7e870482e488dd1bbe533a9d44497ba8b756e1e82b";
event ProviderRegistered(address indexed provider, uint256 stakedAmount);
event ProviderRegistered(address indexed provider, uint256 stakedAmount, bytes blsPublicKey);

function setUp() public {
testNumber = 42;
Expand Down Expand Up @@ -105,7 +105,7 @@ contract ProviderRegistryTest is Test {
vm.prank(provider);
vm.expectEmit(true, false, false, true);

emit ProviderRegistered(provider, 1e18 wei);
emit ProviderRegistered(provider, 1e18 wei, validBLSPubkey);

providerRegistry.registerAndStake{value: 1e18 wei}(validBLSPubkey);

Expand Down

0 comments on commit 85d29c1

Please sign in to comment.