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

feat: Allow methods defined in a contract to be non-entry points #2687

Merged
merged 6 commits into from
Sep 14, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add failing test
kevaundray committed Sep 13, 2023
commit 4652c921d26bd7b9528731ec1f2a7c7eb9b1cef8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "no_entry_points"
type = "contract"
authors = [""]
compiler_version = "0.1"

[dependencies]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
contract Foo {
struct PlaceholderStruct{x : u32 }

#[contract_library_method]
fn has_mut(_context : &mut PlaceholderStruct) {}
}