Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

refactor(gw_get_script_hash_by_prefix_fn): use const for prefix arg #106

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

Flouse
Copy link
Collaborator

@Flouse Flouse commented Jan 19, 2022

  • fix error: invalid conversion
from 'int (*)(gw_context_t*, const uint8_t*, uint64_t, uint8_t*)' {aka 'int (*)(gw_context_t*, const unsigned char*, long unsigned int, unsigned char*)'} to 'gw_get_script_hash_by_prefix_fn' {aka 'int (*)(gw_context_t*, unsigned char*, long unsigned int, unsigned char*)'} [-fpermissive]
   ctx->sys_get_script_hash_by_prefix = sys_get_script_hash_by_prefix;
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

c/tests/../generator/../polyjuice_utils.h:156:51: error: invalid conversion from 'const uint8_t*' {aka 'const unsigned char*'} to 'uint8_t*' {aka 'unsigned char*'} [-fpermissive]
     ret = ctx->sys_get_script_hash_by_prefix(ctx, eth_address,

@Flouse Flouse requested review from jjyr and zeroqn as code owners January 19, 2022 08:41
@Flouse Flouse force-pushed the refactor-gw_get_script_hash_by_prefix_fn branch from a027bd1 to 0df7c4e Compare January 19, 2022 08:49
@jjyr jjyr merged commit 515d17d into master Jan 26, 2022
@jjyr jjyr deleted the refactor-gw_get_script_hash_by_prefix_fn branch January 26, 2022 08:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants