Skip to content

Commit

Permalink
ignore tx hash check
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Mar 13, 2024
1 parent 5f4f37b commit 117fe62
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions x/crosschain/types/cctx_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,7 @@ func ValidateZetaIndex(index string) error {
return nil
}
func ValidateHashForChain(hash string, chainID int64) error {
if common.IsZetaChain(chainID) {
return nil
}
if common.IsEthereumChain(chainID) {
if common.IsEthereumChain(chainID) || common.IsZetaChain(chainID) {
_, err := hexutil.Decode(hash)
if err != nil {
return fmt.Errorf("hash must be a valid ethereum hash %s", hash)
Expand Down

0 comments on commit 117fe62

Please sign in to comment.