Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Contract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ string Contract::GenerateBytesForString(const string *value)
{
const char *valuePtr = value->c_str(); //don't fail if given a 'String'
size_t length = strlen(valuePtr);
return GenerateBytesForBytes(valuePtr, length);
return GenerateBytesForInt(length) + GenerateBytesForBytes(valuePtr, length);
}

string Contract::GenerateBytesForHexBytes(const string *value)
Expand Down
4 changes: 2 additions & 2 deletions src/KeyID.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef KEY_ID_H
#define KEY_ID_H
#include "EEPROM.h"
#include <web3.h>
#include <trezor/rand.h>
#include <Web3.h>
#include <Trezor/rand.h>
#include <string>
#include <Crypto.h>

Expand Down