Skip to content

Contract Initialization Error on Testnet #103

Answered by willemneal
knfa28 asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend using the other init method

pub fn new_default_meta(
owner_id: AccountId,
metadata: InitialMetadata,
size: u32,
sale: Option<Sale>,
media_extension: Option<String>,
) -> Self {

As it sets the default for the spec, which you set incorrectly, see here

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by knfa28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants