Skip to content

Commit

Permalink
Update the comment about CREATE_CONTRACT auth payload. (#215)
Browse files Browse the repository at this point in the history
This comment was not in sync with CAP-58.
  • Loading branch information
dmkozh authored Sep 3, 2024
1 parent a7d5951 commit 172a47c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Stellar-transaction.x
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,16 @@ union SorobanAuthorizedFunction switch (SorobanAuthorizedFunctionType type)
{
case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CONTRACT_FN:
InvokeContractArgs contractFn;
// This variant of auth payload for creating new contract instances is no
// longer accepted after protocol 22.
// This variant of auth payload for creating new contract instances
// doesn't allow specifying the constructor arguments, creating contracts
// with constructors that take arguments is only possible by authorizing
// `SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN`
// (protocol 22+).
case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_HOST_FN:
CreateContractArgs createContractHostFn;
// This variant of auth payload for creating new contract instances
// is only accepted in and after protocol 22.
// is only accepted in and after protocol 22. It allows authorizing the
// contract constructor arguments.
case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN:
CreateContractArgsV2 createContractV2HostFn;
};
Expand Down

0 comments on commit 172a47c

Please sign in to comment.