Skip to content

Commit

Permalink
Remove option to create and install contract in the same operation.
Browse files Browse the repository at this point in the history
This relies on the ability to include multiple Soroban operations in the transaction. We can bring this back if we decide against that.
  • Loading branch information
dmkozh committed Nov 9, 2022
1 parent e59ae2a commit 77b27fa
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions Stellar-transaction.x
Original file line number Diff line number Diff line change
Expand Up @@ -499,19 +499,6 @@ struct InstallContractCodeArgs
opaque code<SCVAL_LIMIT>;
};

enum CreateContractSourceType {
CONTRACT_SOURCE_CODE_REF = 0,
CONTRACT_SOURCE_INSTALL_CODE = 1
};

union CreateContractSource switch (CreateContractSourceType type)
{
case CONTRACT_SOURCE_CODE_REF:
SCContractCode codeRef;
case CONTRACT_SOURCE_INSTALL_CODE:
InstallContractCodeArgs installContractCodeArgs;
};

union ContractID switch (ContractIDType type)
{
case CONTRACT_ID_FROM_SOURCE_ACCOUNT:
Expand All @@ -530,7 +517,7 @@ case CONTRACT_ID_FROM_ASSET:
struct CreateContractArgs
{
ContractID contractID;
CreateContractSource source;
SCContractCode source;
};

union HostFunction switch (HostFunctionType type)
Expand Down Expand Up @@ -664,7 +651,7 @@ case ENVELOPE_TYPE_CREATE_CONTRACT_ARGS:
struct
{
Hash networkID;
CreateContractSource source;
SCContractCode source;
uint256 salt;
} createContractArgs;
};
Expand Down

0 comments on commit 77b27fa

Please sign in to comment.