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

fix(other_contracts): gw sys_recover_account failure #86

Merged
merged 1 commit into from
Sep 18, 2021
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion c/other_contracts.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int recover_account(gw_context_t* ctx,
return ERROR_RECOVER_ACCOUNT;
}
uint8_t script[GW_MAX_SCRIPT_SIZE];
uint64_t script_len = 0;
uint64_t script_len = GW_MAX_SCRIPT_SIZE;
ret = ctx->sys_recover_account(ctx, message, signature, signature_len, code_hash, script, &script_len);
if (ret != 0) {
debug_print_int("call sys_recover_account failed", ret);
Expand Down