Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mul 1865 new logic and interface for eos tx #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

@@ -46,6 +46,16 @@ const EosChainId EOS_MAINNET_CHAIN_ID = {0xac, 0xa3, 0x76, 0xf2, 0x06, 0xb8, 0xf
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

@@ -46,6 +46,16 @@ const EosChainId EOS_MAINNET_CHAIN_ID = {0xac, 0xa3, 0x76, 0xf2, 0x06, 0xb8, 0xf
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 put a link to reference documentation here

@@ -86,6 +87,10 @@ TransactionBuilderPtr EosFacade::make_transaction_builder(
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.

@@ -97,7 +98,8 @@ uint64_t EosName::get_data() const

std::string EosName::get_string() const
{
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.

None yet

2 participants