Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

[do not merge] Adding submit functionality to the transaction view #1634

Closed

Conversation

erin-hughes
Copy link
Contributor

Closes #1486 and contributes to #1155

Signed-off-by: Erin Hughes Erin.Hughes@ibm.com

@erin-hughes erin-hughes force-pushed the submit-txn-1486 branch 4 times, most recently from 091cf18 to e0f4c35 Compare November 13, 2019 16:25
@Jakeeyturner Jakeeyturner self-requested a review November 14, 2019 09:02
src/Utils.ts Outdated Show resolved Hide resolved
getTransactionArgumentsSpy.should.have.been.called;
expect(component.state().transactionArguments).toBe('name: \n');
expect(component.state().activeTransaction).toBe(transactionOne);
Copy link
Contributor

Choose a reason for hiding this comment

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

I've only just noticed this - I think we should be using the should syntax like we do everywhere else instead of expect.

src/App.tsx Outdated
this.setState({
childState: {
activeSmartContract: this.state.childState.smartContracts.filter((obj: ISmartContract) => obj.label === newActiveContractLabel)[0],
smartContracts: this.state.childState.smartContracts
activeSmartContract: smartContracts.filter((obj: ISmartContract) => obj.label === newActiveContractLabel)[0],
Copy link
Contributor

@Jakeeyturner Jakeeyturner Nov 20, 2019

Choose a reason for hiding this comment

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

smartContracts.filter((obj: ISmartContract) => obj.label === newActiveContractLabel)[0] can be written as:

smartContracts.find((obj: ISmartContract) => obj.label === newActiveContractLabel)

Signed-off-by: Erin Hughes <Erin.Hughes@ibm.com>
@erin-hughes erin-hughes changed the title Adding submit functionality to the transaction view [do not merge] Adding submit functionality to the transaction view Nov 21, 2019
@erin-hughes
Copy link
Contributor Author

Closing as the merge with the mono repo changes was too messy

Opened a fresh PR instead (#1674 )

@erin-hughes erin-hughes deleted the submit-txn-1486 branch November 26, 2019 15:13
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.

As a user I can submit my generated transactions
2 participants