From f2837479afb1ac6b248b276b55c44a7eb8a21236 Mon Sep 17 00:00:00 2001 From: itsafuu Date: Mon, 2 Dec 2024 16:08:25 -0500 Subject: [PATCH] Added transaction hash and chain id values, changed vulkan linking --- cmake/CommonBuildParameters.cmake | 10 +++++++++- src/GeniusSDK.cpp | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/cmake/CommonBuildParameters.cmake b/cmake/CommonBuildParameters.cmake index 8570798..f689275 100644 --- a/cmake/CommonBuildParameters.cmake +++ b/cmake/CommonBuildParameters.cmake @@ -21,7 +21,15 @@ if(APPLE) set(Vulkan_LIBRARY "${THIRDPARTY_BUILD_DIR}/moltenvk/build/lib/MoltenVK.xcframework") endif() endif() -find_package(Vulkan REQUIRED) +find_package(Vulkan) + +if(NOT TARGET Vulkan::Vulkan) + if(NOT DEFINED $ENV{VULKAN_SDK}) + set(ENV{VULKAN_SDK} "${THIRDPARTY_BUILD_DIR}/Vulkan-Loader") + endif() + + find_package(Vulkan REQUIRED) +endif() if(SHARED_LIB_BUILD) set(LIB_TYPE SHARED) else() diff --git a/src/GeniusSDK.cpp b/src/GeniusSDK.cpp index 9657e8c..911b384 100644 --- a/src/GeniusSDK.cpp +++ b/src/GeniusSDK.cpp @@ -175,9 +175,9 @@ GeniusMatrix GeniusSDKGetBlocks() return matrix_from_buffer( blocks ); } -void GeniusSDKMintTokens( uint64_t amount ) +void GeniusSDKMintTokens( uint64_t amount, const char *transaction_hash, const char *chain_id ) { - GeniusNodeInstance->MintTokens( amount ); + GeniusNodeInstance->MintTokens( amount, transaction_hash, chain_id ); } GeniusAddress GeniusSDKGetAddress()