From ae26c8576e7dffea8421f14a6e89401cf09ba27b Mon Sep 17 00:00:00 2001 From: Flouse Date: Fri, 8 Oct 2021 17:07:34 +0800 Subject: [PATCH] fix(limitations): tune GW_MAX_DATA_SIZE to 25KB https://github.com/nervosnetwork/godwoken-polyjuice/issues/92 --- c/polyjuice.h | 1 + c/polyjuice_globals.h | 2 +- deps/godwoken-scripts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/c/polyjuice.h b/c/polyjuice.h index 64d1b105..86d01728 100644 --- a/c/polyjuice.h +++ b/c/polyjuice.h @@ -928,6 +928,7 @@ int store_contract_code(gw_context_t* ctx, return ret; } ckb_debug("BEGIN store data"); + debug_print_int("contract_code_len", res->output_size); ret = ctx->sys_store_data(ctx, res->output_size, (uint8_t*)res->output_data); ckb_debug("END store data"); if (ret != 0) { diff --git a/c/polyjuice_globals.h b/c/polyjuice_globals.h index e2f2141c..dc915f3d 100644 --- a/c/polyjuice_globals.h +++ b/c/polyjuice_globals.h @@ -1,7 +1,7 @@ #ifndef POLYJUICE_GLOBALS_H #define POLYJUICE_GLOBALS_H -#define POLYJUICE_VERSION "v0.8.7" +#define POLYJUICE_VERSION "v0.8.8" #define POLYJUICE_SHORT_ADDR_LEN 20 /* 32 + 4 + 20 */ #define SCRIPT_ARGS_LEN 56 diff --git a/deps/godwoken-scripts b/deps/godwoken-scripts index addb27a4..1a9d92ba 160000 --- a/deps/godwoken-scripts +++ b/deps/godwoken-scripts @@ -1 +1 @@ -Subproject commit addb27a40f12008764f7f5856c94fb51b3d87a25 +Subproject commit 1a9d92baa46b8ee72d5114ce3bc6fbc690ed9ccb