Skip to content

Commit

Permalink
feat(bch): Fix codegen-v2 and ECash CoinType test
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshiotomakan committed Oct 4, 2024
1 parent dbfcd06 commit ea4e48b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ impl CoinEntry for {BLOCKCHAIN}Entry {
}

#[inline]
fn parse_address_unchecked(
&self,
_coin: &dyn CoinContext,
address: &str,
) -> AddressResult<Self::Address> {
fn parse_address_unchecked(&self, address: &str) -> AddressResult<Self::Address> {
{BLOCKCHAIN}Address::from_str(address)
}

Expand Down
2 changes: 1 addition & 1 deletion tests/chains/ECash/TWCoinTypeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ TEST(TWECashCoinType, TWCoinType) {
auto name = WRAPS(TWCoinTypeConfigurationGetName(TWCoinTypeECash));

ASSERT_EQ(TWCoinTypeConfigurationGetDecimals(TWCoinTypeECash), 2);
ASSERT_EQ(TWBlockchainBitcoin, TWCoinTypeBlockchain(TWCoinTypeECash));
ASSERT_EQ(TWBlockchainBitcoinCash, TWCoinTypeBlockchain(TWCoinTypeECash));
ASSERT_EQ(0x5, TWCoinTypeP2shPrefix(TWCoinTypeECash));
ASSERT_EQ(0x0, TWCoinTypeStaticPrefix(TWCoinTypeECash));
assertStringsEqual(symbol, "XEC");
Expand Down

0 comments on commit ea4e48b

Please sign in to comment.