Skip to content

Commit

Permalink
[ECHOJS-197] rename toObject -> toRaw (#93)
Browse files Browse the repository at this point in the history
* [BLP-433] rename toObject -> toRaw

* up version
  • Loading branch information
Anastasia Rudenko authored Oct 14, 2019
1 parent 0c00aeb commit 3af9410
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "echojs-lib",
"version": "1.8.1-rc.2",
"version": "1.8.1-rc.3",
"description": "Pure JavaScript ECHO library for node.js",
"main": "./dist/index.js",
"types": "./types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/echo/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class Transaction {
* @returns {Promise<{ publicKeys:Array<string> }>}
*/
async getPotentialSignatures() {
const transactionObject = this.finalized ? this.transactionObject : transaction.toObject({
const transactionObject = this.finalized ? this.transactionObject : transaction.toRaw({
ref_block_num: 0,
ref_block_prefix: 0,
expiration: this.expiration === undefined ? 0 : this.expiration,
Expand Down

0 comments on commit 3af9410

Please sign in to comment.