From c35a05e774cf33d287de2dbe187dac4b317bb52b Mon Sep 17 00:00:00 2001 From: Mykola Sakhno Date: Wed, 19 Jun 2024 02:37:22 +0300 Subject: [PATCH] fix build --- lib/forge-std | 2 +- test/BTCDepositAddressDeriver.t.sol | 6 +++++- test/Bech32m.t.sol | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/forge-std b/lib/forge-std index bb4ceea..978ac6f 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit bb4ceea94d6f10eeb5b41dc2391c6c8bf8e734ef +Subproject commit 978ac6fadb62f5f0b723c996f64be52eddba6801 diff --git a/test/BTCDepositAddressDeriver.t.sol b/test/BTCDepositAddressDeriver.t.sol index a4ca5a5..c7bc203 100644 --- a/test/BTCDepositAddressDeriver.t.sol +++ b/test/BTCDepositAddressDeriver.t.sol @@ -6,6 +6,10 @@ 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; @@ -54,7 +58,7 @@ contract BTCDepositAddressDeriverTest is Test { assertEq(deriver.p2y(), 0); vm.expectEmit(address(deriver)); - emit BTCDepositAddressDeriver.SeedChanged( + emit SeedChanged( "tb1p7g532zgvuzv8fz3hs02wvn2almqh8qyvz4xdr564nannkxh28kdq62ewy3", "tb1psfpmk6v8cvd8kr4rdda0l8gwyn42v5yfjlqkhnureprgs5tuumkqvdkewz", "tb" diff --git a/test/Bech32m.t.sol b/test/Bech32m.t.sol index 3b32b2b..cf58ae8 100644 --- a/test/Bech32m.t.sol +++ b/test/Bech32m.t.sol @@ -1,5 +1,5 @@ // Solidity Version: ^0.8.13 -pragma solidity ^0.8.13; +pragma solidity ^0.8.19; import {Test, console} from "forge-std/Test.sol"; import {Bech32m} from "../src/Bech32m.sol";