Skip to content

Conversation

@boguslavsky
Copy link
Contributor

@boguslavsky boguslavsky commented Aug 27, 2018

Overview

Please describe your changes here and list any open questions you might have.


See: https://jira.bf.local/browse/XYZ

Definition of Done


// initialize protobuf and add defined schema to protobuf root
const root = new Root()
root.define('CreateTransactionProtobuf').add(CreateTransactionProtobuf)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to re-define these types each time we send a transaction?

"big-integer": "^1.6.32",
"bootstrap": "^4.0.0",
"exonum-client": "^0.10.2",
"exonum-client": "^0.12.4",
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to double-check: this version does not use separated messages, does it?


transfer(keyPair, receiver, amountToTransfer, seed) {

// define schema for transaction with protobuf
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd consider splitting this and the previous functions into smaller ones to ease reading, and avoid code duplication, as they've become rather long. E.g.:

def transferTx: createTransferTx(<parameters>) submitTransaction(id, body) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants