Skip to content

Replace api::set_code_hash with api::set_code_hash2 impl #1701

@ascjones

Description

@ascjones

The existing set_code_hash impl accepts the concrete &[u8; 32], which is different to other api methods handling code hashes which use the generic E::Hash type.

In order not to make a breaking change, I have proposed adding a new set_code_hash2 method to the api which accepts the generic E::Hash instead.

This ticket is a reminder to replace the set_code_hash impl with set_code_hash2 impl at the next MAJOR release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ink_env[ink_env] work item

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions