Skip to content

Commit

Permalink
<update>(build): update version to 3.7.0. (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyonRay authored Mar 25, 2024
1 parent bc20cb4 commit 9ce633d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if (NOT DEFINED CMAKE_TOOLCHAIN_FILE)
endif ()

# project name
project(bcos-c-sdk VERSION "3.6.0")
project(bcos-c-sdk VERSION "3.7.0")

# Debug, Release, RelWithDebInfo, MinSizeRel
if (NOT CMAKE_BUILD_TYPE)
Expand Down
20 changes: 20 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
### 3.7.0

(2024-03-25)

**新增**

- 新增 `v2` 版本的交易构造方法,并提供Jni层对应的实现方法。详情见:https://github.com/FISCO-BCOS/bcos-c-sdk/pull/219

**更新**

- 优化 `go-sdk-wrapper` 调用回调的方法,详情见:https://github.com/FISCO-BCOS/bcos-c-sdk/pull/218

**修复**

- 修复 `go-sdk-wrapper` 在初始化时WsConfig默认使用值有误导致CPU占用过高的问题,详情见:https://github.com/FISCO-BCOS/bcos-c-sdk/pull/222
- 修复初始化读取配置时,因错误配置可能出现coredump的问题,详情见:https://github.com/FISCO-BCOS/bcos-c-sdk/pull/223
- 修复在x86 macOS下退出时会输出stderr的问题,详情见:https://github.com/FISCO-BCOS/bcos-c-sdk/pull/223

---

### 3.6.0

(2024-02-08)
Expand Down
5 changes: 3 additions & 2 deletions bcos-c-sdk/bcos_sdk_c_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

using namespace bcos;

thread_local std::string errorMsg;
/**
* @brief free char* pointer
* Note: The *p must be created by malloc or it should have serious bad effects
Expand Down Expand Up @@ -233,8 +234,8 @@ void bcos_sdk_c_handle_response(
if (errorPtr && errorPtr->errorCode() != 0)
{
resp->error = errorPtr->errorCode();
// not copy here because cpp sdk will release the errorPtr
resp->desc = (char*)errorPtr->errorMessage().c_str();
errorMsg = errorPtr->errorMessage();
resp->desc = (char*)errorMsg.c_str();
resp->data = NULL;
resp->size = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/java/jni/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {

archivesBaseName = 'bcos-sdk-jni'
group = 'org.fisco-bcos'
version = '3.7.0-SNAPSHOT'
version = '3.7.0'

// Additional attribute definition
ext {
Expand Down

0 comments on commit 9ce633d

Please sign in to comment.