Skip to content

Commit

Permalink
Carbon Batcher - minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzhelyazkov committed Jan 21, 2025
1 parent 437ce42 commit 24c8fe9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/utility/CarbonBatcher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ contract CarbonBatcher is Upgradeable, Utils, ReentrancyGuard, IERC721Receiver {
/**
* @dev triggered when strategies have been created
*/
event CreatedStrategies(address indexed owner, uint256[] strategyIds);
event StrategiesCreated(address indexed owner, uint256[] strategyIds);

/**
* @dev triggered when tokens have been withdrawn from the carbon batcher
Expand Down Expand Up @@ -129,7 +129,7 @@ contract CarbonBatcher is Upgradeable, Utils, ReentrancyGuard, IERC721Receiver {
payable(msg.sender).sendValue(txValueLeft);
}

emit CreatedStrategies(msg.sender, strategyIds);
emit StrategiesCreated(msg.sender, strategyIds);

return strategyIds;
}
Expand Down
4 changes: 2 additions & 2 deletions test/forge/CarbonBatcher.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ contract CarbonBatcherTest is TestFixture {
/**
* @dev triggered when strategies have been created
*/
event CreatedStrategies(address indexed owner, uint256[] strategyIds);
event StrategiesCreated(address indexed owner, uint256[] strategyIds);

/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
Expand Down Expand Up @@ -207,7 +207,7 @@ contract CarbonBatcherTest is TestFixture {

// expect to emit batch created strategies event
vm.expectEmit();
emit CreatedStrategies(user1, strategyIds);
emit StrategiesCreated(user1, strategyIds);

// Create a batch of strategies
carbonBatcher.batchCreate(strategies);
Expand Down

0 comments on commit 24c8fe9

Please sign in to comment.