Skip to content

Commit

Permalink
Add missing event schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
DOBEN committed Jan 4, 2024
1 parent d3b560c commit aeb6150
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions examples/cis2-multi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ fn contract_serialization_helper(_ctx: &ReceiveContext, _host: &Host<State>) ->
name = "viewMessageHash",
parameter = "PermitParam",
return_value = "[u8;32]",
error = "ContractError",
crypto_primitives,
mutable
)]
Expand Down Expand Up @@ -797,6 +798,7 @@ fn contract_view_message_hash(
contract = "cis2_multi",
name = "permit",
parameter = "PermitParam",
error = "ContractError",
crypto_primitives,
mutable,
enable_logger
Expand Down
2 changes: 2 additions & 0 deletions examples/cis3-nft-sponsored-txs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ fn contract_serialization_helper(_ctx: &ReceiveContext, _host: &Host<State>) ->
name = "viewMessageHash",
parameter = "PermitParam",
return_value = "[u8;32]",
error = "ContractError",
crypto_primitives,
mutable
)]
Expand Down Expand Up @@ -786,6 +787,7 @@ fn contract_view_message_hash(
contract = "cis3_nft",
name = "permit",
parameter = "PermitParam",
error = "ContractError",
crypto_primitives,
mutable,
enable_logger
Expand Down
8 changes: 5 additions & 3 deletions examples/sponsored-tx-enabled-auction/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ fn auction_init(ctx: &InitContext, state_builder: &mut StateBuilder) -> InitResu
contract = "sponsored_tx_enabled_auction",
name = "addItem",
parameter = "AddItemParameter",
error = "Error",
enable_logger,
mutable
)]
Expand Down Expand Up @@ -449,8 +450,8 @@ fn auction_bid(ctx: &ReceiveContext, host: &mut Host<State>) -> ContractResult<(
contract = "sponsored_tx_enabled_auction",
name = "finalize",
parameter = "u16",
mutable,
error = "Error"
error = "Error",
mutable
)]
fn auction_finalize(ctx: &ReceiveContext, host: &mut Host<State>) -> ContractResult<()> {
// Getting input parameter.
Expand Down Expand Up @@ -522,7 +523,8 @@ fn view(_ctx: &ReceiveContext, host: &Host<State>) -> ContractResult<ReturnParam
contract = "sponsored_tx_enabled_auction",
name = "viewItemState",
return_value = "ItemState",
parameter = "u16"
parameter = "u16",
error = "Error"
)]
fn view_item_state(ctx: &ReceiveContext, host: &Host<State>) -> ContractResult<ItemState> {
// Getting input parameter.
Expand Down

0 comments on commit aeb6150

Please sign in to comment.