Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Apr 26, 2024
1 parent 5c72024 commit 20c422b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions zetaclient/evm/evm_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ func (ob *ChainClient) IsSendOutTxProcessed(cctx *crosschaintypes.CrossChainTx,

// compliance check, special handling the cancelled cctx
if compliance.IsCctxRestricted(cctx) {
recvStatus := chains.ReceiveStatus_Failed
recvStatus := chains.ReceiveStatus_failed

Check warning on line 370 in zetaclient/evm/evm_client.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/evm/evm_client.go#L370

Added line #L370 was not covered by tests
if receipt.Status == 1 {
recvStatus = chains.ReceiveStatus_Success
recvStatus = chains.ReceiveStatus_success

Check warning on line 372 in zetaclient/evm/evm_client.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/evm/evm_client.go#L372

Added line #L372 was not covered by tests
}
zetaTxHash, ballot, err := ob.zetaBridge.PostVoteOutbound(
sendHash,
Expand All @@ -394,9 +394,9 @@ func (ob *ChainClient) IsSendOutTxProcessed(cctx *crosschaintypes.CrossChainTx,
}

if cointype == coin.CoinType_Cmd {
recvStatus := chains.ReceiveStatus_Failed
recvStatus := chains.ReceiveStatus_failed

Check warning on line 397 in zetaclient/evm/evm_client.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/evm/evm_client.go#L397

Added line #L397 was not covered by tests
if receipt.Status == 1 {
recvStatus = chains.ReceiveStatus_Success
recvStatus = chains.ReceiveStatus_success

Check warning on line 399 in zetaclient/evm/evm_client.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/evm/evm_client.go#L399

Added line #L399 was not covered by tests
}
zetaTxHash, ballot, err := ob.zetaBridge.PostVoteOutbound(
sendHash,
Expand Down Expand Up @@ -428,7 +428,7 @@ func (ob *ChainClient) IsSendOutTxProcessed(cctx *crosschaintypes.CrossChainTx,
transaction.GasPrice(),
transaction.Gas(),
transaction.Value(),
chains.ReceiveStatus_Success,
chains.ReceiveStatus_success,

Check warning on line 431 in zetaclient/evm/evm_client.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/evm/evm_client.go#L431

Added line #L431 was not covered by tests
ob.chain,
nonce,
coin.CoinType_Gas,
Expand All @@ -449,7 +449,7 @@ func (ob *ChainClient) IsSendOutTxProcessed(cctx *crosschaintypes.CrossChainTx,
transaction.GasPrice(),
transaction.Gas(),
big.NewInt(0),
chains.ReceiveStatus_Failed,
chains.ReceiveStatus_failed,

Check warning on line 452 in zetaclient/evm/evm_client.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/evm/evm_client.go#L452

Added line #L452 was not covered by tests
ob.chain,
nonce,
coin.CoinType_Gas,
Expand Down Expand Up @@ -493,7 +493,7 @@ func (ob *ChainClient) IsSendOutTxProcessed(cctx *crosschaintypes.CrossChainTx,
transaction.GasPrice(),
transaction.Gas(),
mMint,
chains.ReceiveStatus_Success,
chains.ReceiveStatus_success,

Check warning on line 496 in zetaclient/evm/evm_client.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/evm/evm_client.go#L496

Added line #L496 was not covered by tests
ob.chain,
nonce,
coin.CoinType_Zeta,
Expand Down Expand Up @@ -530,7 +530,7 @@ func (ob *ChainClient) IsSendOutTxProcessed(cctx *crosschaintypes.CrossChainTx,
transaction.GasPrice(),
transaction.Gas(),
mMint,
chains.ReceiveStatus_Success,
chains.ReceiveStatus_success,

Check warning on line 533 in zetaclient/evm/evm_client.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/evm/evm_client.go#L533

Added line #L533 was not covered by tests
ob.chain,
nonce,
coin.CoinType_Zeta,
Expand Down Expand Up @@ -558,7 +558,7 @@ func (ob *ChainClient) IsSendOutTxProcessed(cctx *crosschaintypes.CrossChainTx,
transaction.GasPrice(),
transaction.Gas(),
big.NewInt(0),
chains.ReceiveStatus_Failed,
chains.ReceiveStatus_failed,

Check warning on line 561 in zetaclient/evm/evm_client.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/evm/evm_client.go#L561

Added line #L561 was not covered by tests
ob.chain,
nonce,
coin.CoinType_Zeta,
Expand Down Expand Up @@ -598,7 +598,7 @@ func (ob *ChainClient) IsSendOutTxProcessed(cctx *crosschaintypes.CrossChainTx,
transaction.GasPrice(),
transaction.Gas(),
event.Amount,
chains.ReceiveStatus_Success,
chains.ReceiveStatus_success,

Check warning on line 601 in zetaclient/evm/evm_client.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/evm/evm_client.go#L601

Added line #L601 was not covered by tests
ob.chain,
nonce,
coin.CoinType_ERC20,
Expand All @@ -625,7 +625,7 @@ func (ob *ChainClient) IsSendOutTxProcessed(cctx *crosschaintypes.CrossChainTx,
transaction.GasPrice(),
transaction.Gas(),
big.NewInt(0),
chains.ReceiveStatus_Failed,
chains.ReceiveStatus_failed,

Check warning on line 628 in zetaclient/evm/evm_client.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/evm/evm_client.go#L628

Added line #L628 was not covered by tests
ob.chain,
nonce,
coin.CoinType_ERC20,
Expand Down

0 comments on commit 20c422b

Please sign in to comment.