Skip to content

Commit

Permalink
add test for taproot address
Browse files Browse the repository at this point in the history
  • Loading branch information
Viacheslav Zhygulin authored and Viacheslav Zhygulin committed Sep 26, 2024
1 parent 756539f commit 6b1a630
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/BitcoinUtils_Regtest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ contract BitcoinUtils_Regtest_Test is Test {

function testBech32ValidAddress() public {
assertTrue(utils.validateBitcoinAddress(network, "bcrt1qnd2xm45v0uy5nx3qzt28qrhq42w4udrms8sz52"));
assertTrue(utils.validateBitcoinAddress(network, "bcrt1pnmrmugapastum8ztvgwcn8hvq2avmcwh2j4ssru7rtyygkpqq98q4wyd6s"));
}

function testBech32ValidMainnetAddressIsNotValidForRegtest() public {
Expand Down

0 comments on commit 6b1a630

Please sign in to comment.