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

Make document for contract developers using dynamic link #268

Open
loloicci opened this issue Feb 16, 2023 · 1 comment
Open

Make document for contract developers using dynamic link #268

loloicci opened this issue Feb 16, 2023 · 1 comment
Labels
dynamic_link relate the dynamic link call feature

Comments

@loloicci
Copy link
Contributor

loloicci commented Feb 16, 2023

Information needed

  • function names cannot use (e.g. add_event (used by api))
@da1suk8 da1suk8 added the dynamic_link relate the dynamic link call feature label Jul 21, 2023
@da1suk8
Copy link
Member

da1suk8 commented Aug 4, 2023

The following function names cannot be used as function names for callable_point because they are already used internally.

(Only related to dynamiclink)

  • validate_dynamic_link_interface
  • add_event
  • add_events
  • add_attribute
  • add_attributes
  • get_caller_addr

For example, an error occurs when using the following as a callable_point.

#[callable_point]
fn add_event(deps: DepsMut, _env: Env) {
    ......
}
 = note: rust-lld: error: function signature mismatch: add_event
      ....
      ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dynamic_link relate the dynamic link call feature
Projects
None yet
Development

No branches or pull requests

2 participants