From b203fd4a1bddbe0c7c22ffc8fc89255145a19b0d Mon Sep 17 00:00:00 2001 From: Charlie Chen Date: Tue, 16 Jul 2024 23:17:06 -0500 Subject: [PATCH] remove panics --- pkg/contract/solana/types.go | 2 +- zetaclient/chains/solana/observer/outbound.go | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg/contract/solana/types.go b/pkg/contract/solana/types.go index 8b66b5f383..eede621c06 100644 --- a/pkg/contract/solana/types.go +++ b/pkg/contract/solana/types.go @@ -15,7 +15,7 @@ type PdaInfo struct { Authority [32]byte // ChainId is the chain ID for the gateway program - // TODO: this field exists in latest version of gateway program, but not in the current e2e test program + // Note: this field exists in latest version of gateway program, but not in the current e2e test program // ChainId uint64 } diff --git a/zetaclient/chains/solana/observer/outbound.go b/zetaclient/chains/solana/observer/outbound.go index e744e001e9..a75641e072 100644 --- a/zetaclient/chains/solana/observer/outbound.go +++ b/zetaclient/chains/solana/observer/outbound.go @@ -10,8 +10,7 @@ import ( // GetTxID returns a unique id for Solana outbound func (ob *Observer) GetTxID(_ uint64) string { - //TODO implement me - panic("implement me") + return "" } // IsOutboundProcessed checks outbound status and returns (isIncluded, isConfirmed, error) @@ -20,6 +19,5 @@ func (ob *Observer) IsOutboundProcessed( _ *types.CrossChainTx, _ zerolog.Logger, ) (bool, bool, error) { - //TODO implement me - panic("implement me") + return false, false, nil }