Skip to content

Commit

Permalink
fix event import
Browse files Browse the repository at this point in the history
  • Loading branch information
Viacheslav Zhygulin authored and Viacheslav Zhygulin committed Jun 20, 2024
1 parent 89429a9 commit bc20d6e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/BTCDepositAddressDeriver.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import {Test} from "forge-std/Test.sol";
import {BTCDepositAddressDeriver} from "../src/BTCDepositAddressDeriver.sol";

contract BTCDepositAddressDeriverTest is Test {
// We declare event SeedChanged second time here because Solidity
// does not allow importing events from other contracts.
// https://ethereum.stackexchange.com/questions/52967/can-a-contract-emit-another-contracts-event
event SeedChanged(string btcAddr1, string btcAddr2, string hrp);

BTCDepositAddressDeriver deriver;

Expand Down Expand Up @@ -202,7 +198,7 @@ contract BTCDepositAddressDeriverTest is Test {
assertEq(deriver.p2y(), 0);

vm.expectEmit(address(deriver));
emit SeedChanged(
emit BTCDepositAddressDeriver.SeedChanged(
"tb1p7g532zgvuzv8fz3hs02wvn2almqh8qyvz4xdr564nannkxh28kdq62ewy3",
"tb1psfpmk6v8cvd8kr4rdda0l8gwyn42v5yfjlqkhnureprgs5tuumkqvdkewz",
"tb"
Expand Down

0 comments on commit bc20d6e

Please sign in to comment.