Skip to content

Commit

Permalink
Merge pull request #451 from Concordium/fix-event-schema
Browse files Browse the repository at this point in the history
Fix event schema
  • Loading branch information
DOBEN authored Oct 29, 2024
2 parents 0a67188 + dfe9f4d commit 165a57f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions examples/cis2-multi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -841,12 +841,7 @@ fn get_canonical_address(address: Address) -> ContractResult<Address> {
// Contract functions

/// Initialize contract instance with no token types.
#[init(
contract = "cis2_multi",
parameter = "ContractTokenAmount",
event = "Cis2Event<ContractTokenId, ContractTokenAmount>",
enable_logger
)]
#[init(contract = "cis2_multi", parameter = "ContractTokenAmount", event = "Event", enable_logger)]
fn contract_init(
ctx: &InitContext,
state_builder: &mut StateBuilder,
Expand Down
2 changes: 1 addition & 1 deletion examples/nametoken/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ pub fn build_token_metadata_url(token_id: &ContractTokenId) -> String {

/// Initialize contract instance with no token types initially.
/// Set the account that initialised the contract to be admin
#[init(contract = "NameToken")]
#[init(contract = "NameToken", event = "Cis2Event<ContractTokenId, ContractTokenAmount>")]
fn contract_init(ctx: &InitContext, state_builder: &mut StateBuilder) -> InitResult<State> {
// Construct the initial contract state.
Ok(State::empty(ctx.init_origin(), state_builder))
Expand Down

0 comments on commit 165a57f

Please sign in to comment.