-
Notifications
You must be signed in to change notification settings - Fork 16
Mul 1865 new logic and interface for eos tx #41
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
base: master
Are you sure you want to change the base?
Mul 1865 new logic and interface for eos tx #41
Conversation
change file name from `EOS` to `eos` move struct EosTransactionAction to new file move struct EosTransactionTransferAction to new file
408c917 to
c64af94
Compare
Create EOS transfer transaction builder
c64af94 to
728d8cd
Compare
Enmk
left a comment
There was a problem hiding this 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) |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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) | ||
| { |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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__); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented out code
No description provided.