Skip to content

consider adding a main function to src\main.rs #74

@oracle3

Description

@oracle3

use ewasm_api::prelude::*;

fn entry() {
let a: Hash = block_hash(1);
finish_data(&a.bytes);
}

ewasm_entry_point!(entry);

error[E0601]: main function not found in crate myrust
|
= note: consider adding a main function to src\main.rs

error: aborting due to previous error

For more information about this error, try rustc --explain E0601.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions