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: include near-sdk/src/private/result_type_ext.rs file into module tree #1122

Merged
merged 2 commits into from
Jan 7, 2024

Conversation

dj8yfo
Copy link
Collaborator

@dj8yfo dj8yfo commented Dec 19, 2023

this prevents compiling sample contract with cargo build --features "near-sdk/__abi-generate"

use near_sdk::borsh::{BorshDeserialize, BorshSerialize};
use near_sdk::near_bindgen;
#[near_bindgen]
#[derive(Default, BorshDeserialize, BorshSerialize)]
#[borsh(crate = "near_sdk::borsh")]
pub struct Contract {}
#[near_bindgen]
impl Contract {
    #[handle_result]
    pub fn foo(&self) -> Result<u32, &'static str> {
        Ok(1)
    }
}

@frol frol merged commit 8dd5d49 into near:master Jan 7, 2024
14 checks passed
@frol frol mentioned this pull request Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants