Skip to content

Commit

Permalink
Added transaction hash and chain id values, changed vulkan linking
Browse files Browse the repository at this point in the history
  • Loading branch information
itsafuu committed Dec 2, 2024
1 parent b8f02cc commit f283747
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion cmake/CommonBuildParameters.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions src/GeniusSDK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f283747

Please sign in to comment.