Skip to content

update account type data type #15

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

Merged
merged 1 commit into from
Jul 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions documentation.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@
"properties": {
"AccountType": {
"type": "integer",
"format": "int32"
"format": "int64"
},
"Address": {
"type": "string"
Expand Down Expand Up @@ -800,15 +800,15 @@
"type": "string"
},
"RecipientAccountType": {
"type": "string",
"format": "byte"
"type": "integer",
"format": "int64"
},
"SenderAccountAddress": {
"type": "string"
},
"SenderAccountType": {
"type": "string",
"format": "byte"
"type": "integer",
"format": "int64"
},
"Signature": {
"type": "string",
Expand All @@ -835,8 +835,8 @@
"format": "int64"
},
"Version": {
"type": "string",
"format": "byte"
"type": "integer",
"format": "int64"
},
"emptyTransactionBody": {
"$ref": "#/definitions/modelEmptyTransactionBody"
Expand Down
2 changes: 1 addition & 1 deletion model/account.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ option go_package = "github.com/zoobc/zoobc-core/common/model";
// Account represent the transaction data structure stored in the database
message Account {
bytes ID = 1;
int32 AccountType = 2;
uint32 AccountType = 2;
string Address = 3;
}

Expand Down
6 changes: 3 additions & 3 deletions model/transaction.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ option go_package = "github.com/zoobc/zoobc-core/common/model";

// Transaction represent the transaction data structure stored in the database
message Transaction {
bytes Version = 1;
uint32 Version = 1;
bytes ID = 2;
int64 BlockID = 3;
uint32 Height = 4;
bytes SenderAccountType = 5;
uint32 SenderAccountType = 5;
string SenderAccountAddress = 6;
bytes RecipientAccountType = 7;
uint32 RecipientAccountType = 7;
string RecipientAccountAddress = 8;
uint32 TransactionType = 9;
int64 Fee = 10;
Expand Down