Skip to content

Conversation

@PashaKlybik
Copy link
Member

No description provided.

change file name from `EOS` to `eos`
move struct EosTransactionAction to new file
move struct EosTransactionTransferAction to new file
@PashaKlybik PashaKlybik force-pushed the MUL-1865-New-logic-and-interface-for-EOS-Tx branch 5 times, most recently from 408c917 to c64af94 Compare November 27, 2018 14:54
Create EOS transfer transaction builder
@PashaKlybik PashaKlybik force-pushed the MUL-1865-New-logic-and-interface-for-EOS-Tx branch from c64af94 to 728d8cd Compare November 27, 2018 15:00
Copy link
Contributor

@Enmk Enmk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some modifications required

const std::array<uint8_t, 32> EOS_ZERO_SHA256 = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

void putVariableUInt(EosBinaryStream* stream, uint64_t value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update signature:

WriteToStream(uint64_t value, EosBinaryStream* stream)

{
do
{
uint8_t input = static_cast<uint8_t>(value & 0x7f);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const uint8_t

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

void putVariableUInt(EosBinaryStream* stream, uint64_t value)
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put a link to reference documentation here

static const std::unordered_map<size_t, BuilderFactoryFunction> BUILDERS =
{
{
EOS_TRANSACTION_BUILDER_UPDATEAUTH,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, we now have an additional overload that takes string as builder name, please add it here.

{
THROW_EXCEPTION2(ERROR_FEATURE_NOT_IMPLEMENTED_YET, __FUNCTION__);
return m_data_string;
//THROW_EXCEPTION2(ERROR_FEATURE_NOT_IMPLEMENTED_YET, __FUNCTION__);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented out code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants