-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add New Types of Transaction #726 #791
Add New Types of Transaction #726 #791
Conversation
- check for byte size data should not exceed txn content size
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can simplify the size limitation to be global, which will reduce the validations
Maybe you can add some test to ensure :data transaction cannot pass without content or ownerships, same for :contract transaction with code |
do_validate_ownerships(ownerships) | ||
end | ||
defp validate_ownerships(%Transaction{data: %TransactionData{ownerships: ownerships}}) do | ||
do_validate_ownerships(ownerships) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there is need for this function, you could merge it inside the validate_ownerships
This require lib{js,dart,go} update + transactionbuilder update. Who's up for it? |
Need to create the issues. |
I hacked the transactionbuilder to create a transaction of type contract and it fails when calculating the fees: curl cmd:
result: (code 400) EDIT: error is coming from: ArchethicWeb.API.Types.TransactionType |
Indeed, these new type need to be added in the TransactionType values for API |
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (726)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: