Skip to content

Commit d24ff5d

Browse files
authored
Merge pull request #6 from GT50-SRL/develop
Fixed warnings
2 parents c57fece + 0b59e08 commit d24ff5d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

AlgoIoT.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -457,17 +457,16 @@ int AlgoIoT::submitTransactionToAlgorand()
457457
DEBUG_SERIAL.println("\nReady to submit transaction to Algorand network");
458458
DEBUG_SERIAL.println();
459459
#endif
460-
iErr = submitTransaction(msgPackTx, transactionID); // Returns HTTP code
460+
iErr = submitTransaction(msgPackTx); // Returns HTTP code
461461
if (iErr != 200) // 200 = HTTP OK
462462
{ // Something went wrong
463463
return ALGOIOT_TRANSACTION_ERROR;
464464
}
465465
// OK: our transaction, carrying sensor data in the Note field,
466466
// was successfully submitted to the Algorand blockchain
467467
#ifdef LIB_DEBUGMODE
468-
DEBUG_SERIAL.print("\t*** Algorand transaction successfully submitted with ID=");
469-
DEBUG_SERIAL.print(transactionID);
470-
DEBUG_SERIAL.println(" ***\n");
468+
DEBUG_SERIAL.print("\t Transaction successfully submitted with ID=");
469+
DEBUG_SERIAL.println(getTransactionID());
471470
#endif
472471

473472
return ALGOIOT_NO_ERROR;
@@ -1165,7 +1164,7 @@ int AlgoIoT::createSignedBinaryTransaction(msgPack mPack, const uint8_t signatur
11651164
// Last method to be called, after all the others
11661165
// Returns http response code (200 = OK) or AlgoIoT error code
11671166
// TODO: On error codes 5xx (server error), maybe we should retry after 5s?
1168-
int AlgoIoT::submitTransaction(msgPack msgPackTx, char* transactionID)
1167+
int AlgoIoT::submitTransaction(msgPack msgPackTx)
11691168
{
11701169
String httpRequest = m_httpBaseURL + POST_TRANSACTION;
11711170

AlgoIoT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class AlgoIoT
165165
// 6. Submits transaction to algod
166166
// Last method to be called, after all the others
167167
// Returns HTTP response code (200 = OK)
168-
int submitTransaction(msgPack msgPackTx, char* transactionID);
168+
int submitTransaction(msgPack msgPackTx);
169169

170170

171171
public:

0 commit comments

Comments
 (0)