Skip to content

Commit 65b170a

Browse files
authored
Update memo.py
Code example in comments is wrong. Memo object has no "bitshares" property, it has "blockchain" property.
1 parent 886806e commit 65b170a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitshares/memo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Memo(object):
2626
2727
from bitshares.memo import Memo
2828
m = Memo("bitshareseu", "wallet.xeroc")
29-
m.bitshares.wallet.unlock("secret")
29+
m.blockchain.wallet.unlock("secret")
3030
enc = (m.encrypt("foobar"))
3131
print(enc)
3232
>> {'nonce': '17329630356955254641', 'message': '8563e2bb2976e0217806d642901a2855'}
@@ -39,7 +39,7 @@ class Memo(object):
3939
4040
from bitshares.memo import Memo
4141
m = Memo()
42-
m.bitshares.wallet.unlock("secret")
42+
m.blockchain.wallet.unlock("secret")
4343
print(memo.decrypt(op_data["memo"]))
4444
4545
if ``op_data`` being the payload of a transfer operation.

0 commit comments

Comments
 (0)