Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

feat: MultiTx & SDK Compatibility, non re-try #296

Merged
merged 4 commits into from
Dec 8, 2020

Conversation

LeonFLK
Copy link
Contributor

@LeonFLK LeonFLK commented Dec 3, 2020

relates to KILTProtocol/ticket#853

Adds compatibility for the multitx functionalities, does not use re-try functionality, waits for IS_IN_BLOCK.

Checklist:

  • I have verified that the code works
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)

@tjwelde tjwelde changed the title MultiTx Compatibility, non re-try feat: MultiTx Compatibility, non re-try Dec 3, 2020
import {
IS_IN_BLOCK,
submitSignedTx,
} from '@kiltprotocol/sdk-js/build/blockchain/Blockchain'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, this import is a bit ugly. we should work on a better export in the sdk

@tjwelde
Copy link
Contributor

tjwelde commented Dec 3, 2020

Restructured and exported here: KILTprotocol/sdk-js#315

@LeonFLK LeonFLK requested a review from tjwelde December 3, 2020 20:24
src/components/DevTools/DevTools.anticov.ts Outdated Show resolved Hide resolved
src/components/DevTools/DevTools.ctypes.tsx Outdated Show resolved Hide resolved
src/containers/CtypeCreate/CtypeCreate.tsx Outdated Show resolved Hide resolved
src/services/BalanceUtilities.tsx Outdated Show resolved Hide resolved
src/services/DelegationsService.ts Outdated Show resolved Hide resolved
src/services/DidService.ts Outdated Show resolved Hide resolved
@tjwelde
Copy link
Contributor

tjwelde commented Dec 4, 2020

Overall I think it improved the code much more. I feared, that the way IS_IN_BLOCK is exported now, might be a problem, but I ultimately decided against exporting it directly in root. We can talk about it after, if you want. Right now I would prefer my proposed solutions.

Copy link
Contributor

@tjwelde tjwelde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tjwelde tjwelde changed the title feat: MultiTx Compatibility, non re-try feat: MultiTx & SDK Compatibility, non re-try Dec 8, 2020
@tjwelde tjwelde merged commit a279d7f into develop Dec 8, 2020
@tjwelde tjwelde deleted the lw-853-multitx-compatibility branch December 8, 2020 13:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants