Skip to content

Commit

Permalink
Update Entry.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
BitolMaya committed Aug 11, 2023
1 parent 066be4c commit 7a2a89e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MAYAChain/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ namespace TW::MAYAChain {
void Entry::sign([[maybe_unused]] TWCoinType coin, const TW::Data& dataIn, TW::Data& dataOut) const {
auto input = Cosmos::Proto::SigningInput();
input.ParseFromArray(dataIn.data(), (int)dataIn.size());
auto serializedOut = MAYAChain::Signer::sign(input).SerializeAsString();
auto serializedOut = Signer::sign(input).SerializeAsString();
dataOut.insert(dataOut.end(), serializedOut.begin(), serializedOut.end());
}

string Entry::signJSON([[maybe_unused]] TWCoinType coin, const std::string& json, const Data& key) const {
return MAYAChain::Signer::signJSON(json, key);
return Signer::signJSON(json, key);
}

} // namespace TW::MAYAChain

0 comments on commit 7a2a89e

Please sign in to comment.