Error when rekeying address (At least one signature didn't pass verification)
froze9063 opened this issue · 2 comments
froze9063 commented
Hi all!
I'm trying to send Rekey transaction by Dart algorand SDK and getting the error when I send raw transaction: {“message”:“At least one signature didn’t pass verification”}
My code:
`try{
final params = await algorand.getSuggestedTransactionParams();
Address address = Address.fromAlgorandAddress(address: );
RawTransaction transaction = await (PaymentTransactionBuilder()
..sender = address
..receiver = address
..amount = Algo.toMicroAlgos(0)
..rekeyTo = <REKEY_TO_ADDRESS>
..suggestedParams = params).build();
final signedTx = await transaction.sign(<SENDER_OBJECT>!);
await algorand.sendTransaction(signedTx);
print("success");
} on AlgorandException catch (ex) {
if(ex.cause is DioError){
print((ex.cause as DioError).response);
}
else{
print((ex).message);
}
}`
RootSoft commented
Should be fixed in v1.0.2.
froze9063 commented
Hi I have tested new sdk and it works, thank you