mirror of
https://github.com/MAGICGrants/flutter_libsparkmobile.git
synced 2026-01-09 13:08:00 -05:00
type consistency
This commit is contained in:
@@ -664,7 +664,7 @@ const char *bytesToHex(std::vector<unsigned char> bytes, int size) {
|
||||
}
|
||||
|
||||
spark::Coin deserializeCoin(const unsigned char *serializedCoin, int length) {
|
||||
std::vector<char> vec(serializedCoin, serializedCoin + length);
|
||||
std::vector<unsigned char> vec(serializedCoin, serializedCoin + length);
|
||||
CDataStream stream(vec, SER_NETWORK, PROTOCOL_VERSION);
|
||||
spark::Coin coin(spark::Params::get_default());
|
||||
stream >> coin;
|
||||
|
||||
Reference in New Issue
Block a user