Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(transactions): fix all transaction stuff, rpc calls, more #2217

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

spencercorwin
Copy link
Collaborator

Description of the Change

Updates many things:

  • createGetHashData function
  • How message/messageMagic is passed around to the appropriate places where it's needed (like in ConsensusPayload, FeelessTransactionModel, TransactionModel, Block, BlockBase, TrimmedBlock, BlockHeader)
  • Makes fixes to RPC server to match Neo C# Node implementation
  • Updates types and methods in JSONRPCClient and RPC methods
  • Adds a test to show how transactions should be signed (sendrawtransaction.test.ts)

Test Plan

See sendrawtransaction.test.ts and temp.test.ts in neo-one-client-core/src/__tests__/provider.

Also tested manually with Postman.

Alternate Designs

None.

Benefits

Less bugs, closer to Neo3 Preview 3.

Possible Drawbacks

None.

Applicable Issues

#2176
#2009
#1882
#2155

Copy link
Contributor

@danwbyrne danwbyrne left a comment

Choose a reason for hiding this comment

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

I only made 1 comment but I think it stands for the other classes as well.

@spencercorwin spencercorwin changed the title fix all transaction stuff, rpc calls, more feat(transactions): fix all transaction stuff, rpc calls, more Nov 19, 2020
Copy link
Contributor

@danwbyrne danwbyrne left a comment

Choose a reason for hiding this comment

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

LGTM

@spencercorwin spencercorwin merged commit 31b7a70 into neo-one-suite:master Nov 19, 2020
@spencercorwin spencercorwin deleted the transactions branch November 19, 2020 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants