assertIsTransactionPartialSigner function
Asserts that the provided value implements the TransactionPartialSigner interface.
Throws a SolanaError with code SolanaErrorCode.signerExpectedTransactionPartialSigner if the check fails.
Implementation
void assertIsTransactionPartialSigner(Object? value) {
if (!isTransactionPartialSigner(value)) {
final addr = value is TransactionPartialSigner ? value.address.value : '';
throw SolanaError(SolanaErrorCode.signerExpectedTransactionPartialSigner, {
'address': addr,
});
}
}