Skip to content

Commit 6cae9e9

Browse files
authored
Merge pull request #448 from steemit/drov0-master
Community - Set the memo parameter in the account_update2 operation as optional
2 parents 42f1382 + 967ccfe commit 6cae9e9

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@steemit/steem-js",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
44
"description": "Steem.js the JavaScript API for Steem blockchain",
55
"main": "lib/index.js",
66
"scripts": {

src/auth/serializer/src/operations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ let account_update2 = new Serializer(
612612
owner: optional(authority),
613613
active: optional(authority),
614614
posting: optional(authority),
615-
memo_key: public_key,
615+
memo_key: optional(public_key),
616616
json_metadata: string,
617617
posting_json_metadata: string,
618618
extensions: set(future_extensions)

test/hf20-accounts.test.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ describe('steem.hf20-accounts:', () => {
2929
}
3030

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

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

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

5551
steem.broadcast.claimAccountAsync(activeWif, username, '0.000 TESTS', []).then((result) => {
5652
let newAccountName = username + '-' + Math.floor(Math.random() * 10000);

test/hf21-sps.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('steem.hf21-accounts:', () => {
3838
}
3939

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

4444
steem.broadcast._prepareTransaction(tx).then(function(tx){

0 commit comments

Comments
 (0)