Skip to content

Commit b5cb326

Browse files
golangci: formatting
1 parent f70b5eb commit b5cb326

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

icm-contracts/tests/flows/oracle/oracle_attestation.go

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"github.com/ava-labs/avalanchego/utils/logging"
2222
avalancheWarp "github.com/ava-labs/avalanchego/vms/platformvm/warp"
2323
"github.com/ava-labs/avalanchego/vms/platformvm/warp/payload"
24+
teleportermessengerv2 "github.com/ava-labs/icm-services/abi-bindings/go/TeleporterMessengerV2"
2425
mockoraclereceiver "github.com/ava-labs/icm-services/abi-bindings/go/mocks/MockOracleReceiver"
2526
oracleadapter "github.com/ava-labs/icm-services/abi-bindings/go/teleporterV2/OracleAdapter"
26-
teleportermessengerv2 "github.com/ava-labs/icm-services/abi-bindings/go/TeleporterMessengerV2"
2727
"github.com/ava-labs/icm-services/icm-contracts/tests/network"
2828
testinfo "github.com/ava-labs/icm-services/icm-contracts/tests/test-info"
2929
"github.com/ava-labs/icm-services/icm-contracts/tests/utils"
@@ -38,7 +38,6 @@ import (
3838
"go.uber.org/zap"
3939
)
4040

41-
4241
// oracleMsgABI encodes the oracle message payload that OracleVerifier expects.
4342
// Layout mirrors OracleMessage in network/p2p/oracle/message.go on the
4443
// boraplusplus/sidecar-verifier branch.
@@ -298,14 +297,14 @@ func OracleAttestation(
298297

299298
gasFeeCap, gasTipCap, txNonce := utils.CalculateTxParams(ctx, l1Info.EthClient, fundedAddress)
300299
deliveryTx := types.NewTx(&types.DynamicFeeTx{
301-
ChainID: l1Info.EVMChainID,
302-
Nonce: txNonce,
303-
To: &teleporterAddress,
304-
Gas: 2_000_000, // requiredGasLimit(500K) + TeleporterV2/OracleAdapter overhead
305-
GasFeeCap: gasFeeCap,
306-
GasTipCap: gasTipCap,
307-
Value: common.Big0,
308-
Data: callData,
300+
ChainID: l1Info.EVMChainID,
301+
Nonce: txNonce,
302+
To: &teleporterAddress,
303+
Gas: 2_000_000, // requiredGasLimit(500K) + TeleporterV2/OracleAdapter overhead
304+
GasFeeCap: gasFeeCap,
305+
GasTipCap: gasTipCap,
306+
Value: common.Big0,
307+
Data: callData,
309308
AccessList: icmutils.SignedWarpMessageToAccessList(signedMsg),
310309
})
311310
deliveryTx = utils.SignTransaction(deliveryTx, fundedKey, l1Info.EVMChainID)

icm-contracts/tests/suites/oracle/oracle_suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ const (
5050
var (
5151
log logging.Logger
5252
localNetworkInstance *network.LocalAvalancheNetwork
53-
oracleSidecar *exec.Cmd // mock gRPC sidecar, always running
54-
solanarpcSidecar *exec.Cmd // solanarpc sidecar, non-nil only when SOLANA_RPC_URL set
53+
oracleSidecar *exec.Cmd // mock gRPC sidecar, always running
54+
solanarpcSidecar *exec.Cmd // solanarpc sidecar, non-nil only when SOLANA_RPC_URL set
5555
e2eFlags *e2e.FlagVars
5656
solanaRPCURL string // non-empty when SOLANA_RPC_URL is set
5757
solanarpcConfigPath string // path to the solanarpc sidecar's config file; also read by the validator

0 commit comments

Comments
 (0)