Skip to content

Commit

Permalink
improve validation on execution's price
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMahe committed Mar 25, 2020
1 parent d3cf667 commit f935f99
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 52 deletions.
103 changes: 52 additions & 51 deletions execution/execution.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protobuf/types/execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ message Execution {

// price of running the exeuction.
string price = 14 [
(gogoproto.moretags) = 'hash:"name:14" validate:"coins"'
(gogoproto.moretags) = 'hash:"name:14" validate:"required,coinsPositiveZero"'
];

// blockHeight where the execution was included into blockchain.
Expand Down

0 comments on commit f935f99

Please sign in to comment.