diff --git a/test/BTCDepositAddressDeriver.t.sol b/test/BTCDepositAddressDeriver.t.sol index cdc88f0..72b949f 100644 --- a/test/BTCDepositAddressDeriver.t.sol +++ b/test/BTCDepositAddressDeriver.t.sol @@ -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; @@ -202,7 +198,7 @@ contract BTCDepositAddressDeriverTest is Test { assertEq(deriver.p2y(), 0); vm.expectEmit(address(deriver)); - emit SeedChanged( + emit BTCDepositAddressDeriver.SeedChanged( "tb1p7g532zgvuzv8fz3hs02wvn2almqh8qyvz4xdr564nannkxh28kdq62ewy3", "tb1psfpmk6v8cvd8kr4rdda0l8gwyn42v5yfjlqkhnureprgs5tuumkqvdkewz", "tb"