Skip to content

Commit

Permalink
feature: modify proto buffer
Browse files Browse the repository at this point in the history
- Add version field to smart contract definition
- Add log list and internal transaction list to transaction extension
  • Loading branch information
yanghang8612 committed Aug 30, 2021
1 parent f8c542f commit f87ee8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/protos/api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,8 @@ message TransactionExtention {
repeated bytes constant_result = 3;
Return result = 4;
int64 energy_used = 5;
repeated TransactionInfo.Log logs = 6;
repeated InternalTransaction internal_transactions = 7;
}

message BlockExtention {
Expand Down
1 change: 1 addition & 0 deletions src/main/protos/core/contract/smart_contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ message SmartContract {
int64 origin_energy_limit = 8;
bytes code_hash = 9;
bytes trx_hash = 10;
int32 version = 11;
}

message CreateSmartContract {
Expand Down

0 comments on commit f87ee8a

Please sign in to comment.