Skip to content

Commit

Permalink
Merge pull request #368 from Toktar/task-2297-get-taa-digest
Browse files Browse the repository at this point in the history
INDY-2302: Allow multiple active TAAs
  • Loading branch information
ashcherbakov authored Dec 19, 2019
2 parents 552a9c3 + fef1232 commit 2c20b27
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion devops/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ifeq ($(SRC_DIR_NAME),sovtoken)
# pypi: indy-plenum
# apt: indy-plenum (stable component)

FPM_P_DEPENDS := indy-node(=1.12.1~dev1163)
FPM_P_DEPENDS := indy-node(=1.12.1~dev1165)
FPM_ARGS := --no-python-dependencies $(FPM_ARGS)
endif

Expand Down
2 changes: 1 addition & 1 deletion sovtoken/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
'*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', 'sovtoken']},
include_package_data=True,

install_requires=['indy-node==1.12.1.dev1163'],
install_requires=['indy-node==1.12.1.dev1165'],

setup_requires=['pytest-runner'],
extras_require={
Expand Down
7 changes: 3 additions & 4 deletions sovtoken/sovtoken/test/txn_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@
TXN_PAYLOAD_METADATA_DIGEST, TXN_METADATA, TXN_SIGNATURE, TXN_VERSION, \
TXN_PAYLOAD_PROTOCOL_VERSION, TXN_SIGNATURE_FROM, TXN_SIGNATURE_VALUE, \
TXN_SIGNATURE_VALUES, TXN_SIGNATURE_TYPE, ED25519, TXN_METADATA_TIME, \
TXN_METADATA_ID, TXN_METADATA_SEQ_NO
TXN_METADATA_ID, TXN_METADATA_SEQ_NO, CURRENT_TXN_VERSIONS


def get_sorted_signatures(txn_response):
signatures = txn_response[TXN_SIGNATURE]
signatures[TXN_SIGNATURE_VALUES].sort(key=lambda fv: fv[TXN_SIGNATURE_FROM])
return signatures

class TxnResponse:

version = 1
class TxnResponse:

def __init__(self,
type,
Expand All @@ -41,7 +40,7 @@ def form_response(self):
data = self._form_data()

response = {
TXN_VERSION: self.version,
TXN_VERSION: CURRENT_TXN_VERSIONS[self.type],
TXN_PAYLOAD_PROTOCOL_VERSION: 2,
TXN_PAYLOAD: {
TXN_TYPE: self.type,
Expand Down
3 changes: 1 addition & 2 deletions sovtokenfees/sovtokenfees/test/taa/fees/test_no_taa_fees.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ def test_nym_with_fees_with_taa(helpers,
fees_set[FEES][NYM_FEES_ALIAS],
change_address=addresses[0]
)[0]
with pytest.raises(RequestRejectedException):
helpers.sdk.sdk_send_and_check([request])
helpers.sdk.sdk_send_and_check([request])


def test_nym_with_fees_no_taa(helpers,
Expand Down

0 comments on commit 2c20b27

Please sign in to comment.