Skip to content

Commit

Permalink
CAP-0047 - fix bugs (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh authored May 4, 2022
1 parent e2f4f61 commit ed86408
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions core/cap-0047.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ enum ContractAuthFlags
*/
struct CreateContractOp
{
int64 contractID;
ContractMetadata metadata;
ContractBody body;
};
Expand Down Expand Up @@ -131,6 +130,13 @@ enum LedgerHeaderFlags
};

struct ContractCodeEntry {
union switch (int v)
{
case 0:
void;
}
ext;

AccountID owner;
int64 contractID;
uint32 authFlags;
Expand All @@ -146,8 +152,9 @@ struct ContractCodeEntry {
### Operations
`CreateContractOp` will create a new contract. By default, the contract will be
enabled without any flags set, which means it is mutable.
`CreateContractOp` will create a new `ContractCodeEntry`, and assign it a unique
contractID. By default, the contract will be enabled without any flags set,
which means it is mutable.
`UpdateContractOp` will modify an existing contract. All parameters except the
contractID are optional. contractAuthFlags will update the flags on the contract
Expand Down

0 comments on commit ed86408

Please sign in to comment.