Skip to content

Commit 44bfd94

Browse files
authored
fix: make event case consistant between evm & svm (#760)
1 parent e582cb7 commit 44bfd94

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

contracts/SpokePool.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ abstract contract SpokePool is
189189
bytes32 indexed l2TokenAddress,
190190
address caller
191191
);
192-
event EmergencyDeleteRootBundle(uint256 indexed rootBundleId);
192+
event EmergencyDeletedRootBundle(uint256 indexed rootBundleId);
193193
event PausedDeposits(bool isPaused);
194194
event PausedFills(bool isPaused);
195195

@@ -356,7 +356,7 @@ abstract contract SpokePool is
356356
// would require a new list in storage to keep track of keys.
357357
//slither-disable-next-line mapping-deletion
358358
delete rootBundles[rootBundleId];
359-
emit EmergencyDeleteRootBundle(rootBundleId);
359+
emit EmergencyDeletedRootBundle(rootBundleId);
360360
}
361361

362362
/**************************************

test/evm/hardhat/SpokePool.Admin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe("SpokePool Admin Functions", async function () {
4949
expect(await spokePool.rootBundles(0)).has.property("relayerRefundRoot", mockRelayerRefundRoot);
5050

5151
await expect(spokePool.connect(owner).emergencyDeleteRootBundle(0))
52-
.to.emit(spokePool, "EmergencyDeleteRootBundle")
52+
.to.emit(spokePool, "EmergencyDeletedRootBundle")
5353
.withArgs(0);
5454

5555
expect(await spokePool.rootBundles(0)).has.property("slowRelayRoot", ethers.utils.hexZeroPad("0x0", 32));

test/svm/SvmSpoke.HandleReceiveMessage.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -521,34 +521,34 @@ describe("svm_spoke.handle_receive_message", () => {
521521
messageBody,
522522
});
523523

524-
// Remaining accounts specific to EmergencyDeleteRootBundle.
524+
// Remaining accounts specific to EmergencyDeletedRootBundle.
525525
// Same 3 remaining accounts passed for HandleReceiveMessage context.
526526
const emergencyDeleteRootBundleRemainingAccounts = remainingAccounts.slice(0, 3);
527-
// closer in self-invoked EmergencyDeleteRootBundle.
527+
// closer in self-invoked EmergencyDeletedRootBundle.
528528
emergencyDeleteRootBundleRemainingAccounts.push({
529529
isSigner: true,
530530
isWritable: true,
531531
pubkey: provider.wallet.publicKey,
532532
});
533-
// state in self-invoked EmergencyDeleteRootBundle.
533+
// state in self-invoked EmergencyDeletedRootBundle.
534534
emergencyDeleteRootBundleRemainingAccounts.push({
535535
isSigner: false,
536536
isWritable: false,
537537
pubkey: state,
538538
});
539-
// root_bundle in self-invoked EmergencyDeleteRootBundle.
539+
// root_bundle in self-invoked EmergencyDeletedRootBundle.
540540
emergencyDeleteRootBundleRemainingAccounts.push({
541541
isSigner: false,
542542
isWritable: true,
543543
pubkey: rootBundle,
544544
});
545-
// event_authority in self-invoked EmergencyDeleteRootBundle (appended by Anchor with event_cpi macro).
545+
// event_authority in self-invoked EmergencyDeletedRootBundle (appended by Anchor with event_cpi macro).
546546
emergencyDeleteRootBundleRemainingAccounts.push({
547547
isSigner: false,
548548
isWritable: false,
549549
pubkey: eventAuthority,
550550
});
551-
// program in self-invoked EmergencyDeleteRootBundle (appended by Anchor with event_cpi macro).
551+
// program in self-invoked EmergencyDeletedRootBundle (appended by Anchor with event_cpi macro).
552552
emergencyDeleteRootBundleRemainingAccounts.push({
553553
isSigner: false,
554554
isWritable: false,

0 commit comments

Comments
 (0)