Skip to content

Commit

Permalink
Merge pull request #448 from steemit/drov0-master
Browse files Browse the repository at this point in the history
Community - Set the memo parameter in the account_update2 operation as optional
  • Loading branch information
roadscape committed Aug 8, 2019
2 parents 42f1382 + 967ccfe commit 6cae9e9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steemit/steem-js",
"version": "0.7.6",
"version": "0.7.7",
"description": "Steem.js the JavaScript API for Steem blockchain",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/auth/serializer/src/operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ let account_update2 = new Serializer(
owner: optional(authority),
active: optional(authority),
posting: optional(authority),
memo_key: public_key,
memo_key: optional(public_key),
json_metadata: string,
posting_json_metadata: string,
extensions: set(future_extensions)
Expand Down
8 changes: 2 additions & 6 deletions test/hf20-accounts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ describe('steem.hf20-accounts:', () => {
}

steem.api.callAsync('condenser_api.get_version', []).then((result) => {
if(result['blockchain_version'] < '0.21.0') return done(); /* SKIP AS THIS WILL ONLY PASS ON A TESTNET CURRENTLY */
result.should.have.property('blockchain_version');
//result.should.have.property('blockchain_version', '0.22.0')
if(result['blockchain_version'] < '0.22.0') return done(); /* SKIP AS THIS WILL ONLY PASS ON A TESTNET CURRENTLY */

steem.broadcast._prepareTransaction(tx).then(function(tx){
tx = steem.auth.signTransaction(tx, [activeWif]);
Expand All @@ -48,9 +46,7 @@ describe('steem.hf20-accounts:', () => {
this.skip(); // (!) need test account with enough RC

steem.api.callAsync('condenser_api.get_version', []).then((result) => {
if(result['blockchain_version'] < '0.21.0') return done(); /* SKIP AS THIS WILL ONLY PASS ON A TESTNET CURRENTLY */
result.should.have.property('blockchain_version');
//result.should.have.property('blockchain_version', '0.22.0')
if(result['blockchain_version'] < '0.22.0') return done(); /* SKIP AS THIS WILL ONLY PASS ON A TESTNET CURRENTLY */

steem.broadcast.claimAccountAsync(activeWif, username, '0.000 TESTS', []).then((result) => {
let newAccountName = username + '-' + Math.floor(Math.random() * 10000);
Expand Down
2 changes: 1 addition & 1 deletion test/hf21-sps.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('steem.hf21-accounts:', () => {
}

steem.api.callAsync('condenser_api.get_version', []).then((result) => {
if(result['blockchain_version'] < '0.21.0') return done(); /* SKIP AS THIS WILL ONLY PASS ON A TESTNET CURRENTLY */
if(result['blockchain_version'] < '0.22.0') return done(); /* SKIP AS THIS WILL ONLY PASS ON A TESTNET CURRENTLY */
result.should.have.property('blockchain_version');

steem.broadcast._prepareTransaction(tx).then(function(tx){
Expand Down

0 comments on commit 6cae9e9

Please sign in to comment.