fix: allow strings in transaction error validation (#16348)

* fix: allow strings in transaction error validation

* chore: make log tests more robust
This commit is contained in:
Justin Starry
2021-04-04 18:02:36 +08:00
committed by GitHub
parent 3429785d9b
commit 4b7b402e74
2 changed files with 16 additions and 15 deletions

View File

@ -369,7 +369,7 @@ const GetLeaderScheduleResult = record(string(), array(number()));
/**
* Transaction error or null
*/
const TransactionErrorResult = nullable(pick({}));
const TransactionErrorResult = nullable(union([pick({}), string()]));
/**
* Signature status for a transaction
@ -1536,7 +1536,7 @@ export type SignatureResult = {
/**
* Transaction error
*/
export type TransactionError = {};
export type TransactionError = {} | string;
/**
* Transaction confirmation status