Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix event schema #451

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading