Skip to content

Commit

Permalink
feat(ton): Fix C++ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshiotomakan committed Sep 10, 2024
1 parent 87695d4 commit 93d661d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/common/Keystore/StoredKeyTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ TEST(StoredKey, LoadLegacyMnemonic) {
EXPECT_EQ(key.id, "629aad29-0b22-488e-a0e7-b4219d4f311c");

const auto data = key.payload.decrypt(gPassword);
const auto mnemonic = string(reinterpret_cast<const char*>(data.data()), data.size());
// In this case, the encrypted mnemonic contains `\0` value at the end.
const auto mnemonic = string(reinterpret_cast<const char*>(data.data()));
EXPECT_EQ(mnemonic, "ripple scissors kick mammal hire column oak again sun offer wealth tomorrow wagon turn back");

EXPECT_EQ(key.accounts[0].coin, TWCoinTypeEthereum);
Expand Down

0 comments on commit 93d661d

Please sign in to comment.