Skip to content

Commit

Permalink
Change cost param type to int64 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayz22 authored Apr 28, 2023
1 parent 5e132b2 commit 4f83bee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Stellar-contract-config-setting.x
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,14 @@ enum ContractCostType {
};

struct ContractCostParamEntry {
int32 constTerm;
int32 linearTerm;
int64 constTerm;
int64 linearTerm;
// use `ext` to add more terms (e.g. higher order polynomials) in the future
ExtensionPoint ext;
};

const CONTRACT_COST_COUNT_LIMIT = 1024; // limits the ContractCostParams size to 12kB
// limits the ContractCostParams size to 20kB
const CONTRACT_COST_COUNT_LIMIT = 1024;

typedef ContractCostParamEntry ContractCostParams<CONTRACT_COST_COUNT_LIMIT>;

Expand Down

0 comments on commit 4f83bee

Please sign in to comment.