Skip to content

Commit

Permalink
Fixed typo in regtest address prefix (HRP) (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Horobchenko Andrii <andrii.horobchenko>
  • Loading branch information
ahstroomnetwork authored Sep 4, 2024
1 parent bf855de commit 40a8cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BitcoinNetworkEncoder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ library BitcoinNetworkEncoder {

string constant BTC_BECH32_MAINNET = 'bc';
string constant BTC_BECH32_TESTNET = 'tb';
string constant BTC_BECH32_REGTEST = 'brct';
string constant BTC_BECH32_REGTEST = 'bcrt';
string constant BTC_BECH32_SIMNET = 'sb';

bytes constant BTC_P2PKH_MAINNET = hex"31"; // prefix = 1
Expand Down Expand Up @@ -86,4 +86,4 @@ library BitcoinNetworkEncoder {
revert("Unknown network type");
}
}
}
}

0 comments on commit 40a8cdb

Please sign in to comment.