From 7a94eb30ddf71152d1430cc87a0e221e43adc7f2 Mon Sep 17 00:00:00 2001 From: itsafuu Date: Tue, 3 Dec 2024 07:54:20 -0500 Subject: [PATCH] Add token id param --- src/GeniusSDK.cpp | 4 ++-- src/GeniusSDK.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GeniusSDK.cpp b/src/GeniusSDK.cpp index 911b384..e1a7e41 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, const char *transaction_hash, const char *chain_id ) +void GeniusSDKMintTokens( uint64_t amount, const char *transaction_hash, const char *chain_id, const char *token_id ) { - GeniusNodeInstance->MintTokens( amount, transaction_hash, chain_id ); + GeniusNodeInstance->MintTokens( amount, transaction_hash, chain_id, token_id ); } GeniusAddress GeniusSDKGetAddress() diff --git a/src/GeniusSDK.h b/src/GeniusSDK.h index 5a3b08c..8e81ac9 100644 --- a/src/GeniusSDK.h +++ b/src/GeniusSDK.h @@ -58,7 +58,7 @@ GNUS_VISIBILITY_DEFAULT uint64_t GeniusSDKGetBalance(); GNUS_VISIBILITY_DEFAULT GeniusMatrix GeniusSDKGetTransactions(); GNUS_VISIBILITY_DEFAULT void GeniusSDKFreeTransactions( GeniusMatrix matrix ); GNUS_VISIBILITY_DEFAULT GeniusMatrix GeniusSDKGetBlocks(); -GNUS_VISIBILITY_DEFAULT void GeniusSDKMintTokens( uint64_t amount, const char *transaction_hash, const char *chain_id ); +GNUS_VISIBILITY_DEFAULT void GeniusSDKMintTokens( uint64_t amount, const char *transaction_hash, const char *chain_id, const char *token_id ); GNUS_VISIBILITY_DEFAULT GeniusAddress GeniusSDKGetAddress(); GNUS_VISIBILITY_DEFAULT bool GeniusSDKTransferTokens( uint64_t amount, GeniusAddress *dest ); GNUS_VISIBILITY_DEFAULT uint64_t GeniusSDKGetCost( const JsonData_t jsondata );