Skip to content
Closed

SAE PoC #4504

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lint
  • Loading branch information
StephenButtolph committed Nov 12, 2025
commit 6a8a0aeb1421c283699e71b098bed35b66088923
11 changes: 6 additions & 5 deletions wallet/subnet/primary/examples/create-chain/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ import (
"math/big"
"time"

"github.com/ava-labs/avalanchego/genesis"
"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/utils/constants"
"github.com/ava-labs/avalanchego/vms/secp256k1fx"
"github.com/ava-labs/avalanchego/wallet/subnet/primary"
"github.com/ava-labs/coreth/core"
"github.com/ava-labs/coreth/params"
"github.com/ava-labs/libevm/core/types"
"github.com/ava-labs/libevm/crypto"
"github.com/holiman/uint256"

"github.com/ava-labs/avalanchego/genesis"
"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/utils/constants"
"github.com/ava-labs/avalanchego/vms/secp256k1fx"
"github.com/ava-labs/avalanchego/wallet/subnet/primary"
)

func main() {
Expand Down
23 changes: 7 additions & 16 deletions wallet/subnet/primary/examples/spam-evm/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

package main
Expand All @@ -10,30 +10,21 @@ import (
"math/big"
"time"

ethereum "github.com/ava-labs/libevm"
"github.com/ava-labs/libevm/core/types"
"github.com/ava-labs/libevm/crypto"
"github.com/ava-labs/libevm/ethclient"
"github.com/ava-labs/libevm/params"

"github.com/ava-labs/avalanchego/genesis"
"github.com/ava-labs/avalanchego/wallet/subnet/primary"
)

const (
// maxFeePerGas is the maximum fee that transactions issued by this test
// will be willing to pay. The actual value doesn't really matter, it
// just needs to be higher than the `targetGasPrice` calculated below.
maxFeePerGas = 1000 * params.GWei
// minFeePerGas is the minimum fee that transactions issued by this test
// will pay. The mempool enforces that this value is non-zero.
minFeePerGas = 1 * params.Wei
ethereum "github.com/ava-labs/libevm"
)

var (
gasFeeCap = big.NewInt(maxFeePerGas)
gasTipCap = big.NewInt(minFeePerGas)
)
// maxFeePerGas is the fee that transactions issued by this test will pay.
const maxFeePerGas = 1000 * params.GWei

var gasPrice = big.NewInt(maxFeePerGas)

func main() {
ctx := context.Background()
Expand Down Expand Up @@ -63,7 +54,7 @@ func main() {
for {
tx := types.NewTx(&types.LegacyTx{
Nonce: nonce,
GasPrice: gasFeeCap,
GasPrice: gasPrice,
Gas: 1_000_000, // params.TxGas,
To: &eoa,
})
Expand Down
Loading