cosmwasm icon indicating copy to clipboard operation
cosmwasm copied to clipboard

Make document for contract developers using dynamic link

Open loloicci opened this issue 2 years ago • 1 comments

Information needed

  • function names cannot use (e.g. add_event (used by api))

loloicci avatar Feb 16 '23 06:02 loloicci

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
      ....
      ....

da1suk8 avatar Aug 04 '23 10:08 da1suk8