Skip to content

Commit

Permalink
feat: maxAutoAssociations updates for contract transactions (#359)
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
  • Loading branch information
MiroslavGatsanoga committed Jun 6, 2024
1 parent ac7883d commit 93f8cf1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions services/contract_create.proto
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,12 @@ message ContractCreateTransactionBody {
string memo = 13;

/**
* The maximum number of tokens that this contract can be automatically associated
* with (i.e., receive air-drops from).
* The maximum number of tokens that can be auto-associated with the contract.<br/>
* If this is less than or equal to `used_auto_associations`, or 0, then this contract
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.<br/>
* By default this value is 0 for contracts.
*/
int32 max_automatic_token_associations = 14;

Expand Down
8 changes: 6 additions & 2 deletions services/contract_update.proto
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,12 @@ message ContractUpdateTransactionBody {
}

/**
* If set, the new maximum number of tokens that this contract can be
* automatically associated with (i.e., receive air-drops from).
* If set, modify the maximum number of tokens that can be auto-associated with the
* contract.<br/>
* If this is set and less than or equal to `used_auto_associations`, or 0, then this contract
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.
*/
google.protobuf.Int32Value max_automatic_token_associations = 11;

Expand Down

0 comments on commit 93f8cf1

Please sign in to comment.