Node/Gateway: Relayer handle VaaAlreadyExecuted

This commit is contained in:
Bruce Riley 2023-08-25 13:08:44 -05:00 committed by Evan Gray
parent a9ea12c071
commit fdeb53273e
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ func SubmitVAAToContract(
return txResp, fmt.Errorf("out of gas: %s", txResp.TxResponse.RawLog)
}
if strings.Contains(txResp.TxResponse.RawLog, "failed") {
if strings.Contains(txResp.TxResponse.RawLog, "failed") && !strings.Contains(txResp.TxResponse.RawLog, "VaaAlreadyExecuted") {
return txResp, fmt.Errorf("submit failed: %s", txResp.TxResponse.RawLog)
}