mirror of
https://github.com/luxfi/coreth.git
synced 2026-10-30 17:00:51 +00:00
19 lines
472 B
Go
19 lines
472 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package atomictest
|
|
|
|
import (
|
|
"github.com/luxfi/coreth/plugin/evm/atomic"
|
|
"github.com/luxfi/ids"
|
|
luxatomic "github.com/luxfi/vm/chains/atomic"
|
|
)
|
|
|
|
func ConvertToAtomicOps(tx *atomic.Tx) (map[ids.ID]*luxatomic.Requests, error) {
|
|
id, reqs, err := tx.AtomicOps()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return map[ids.ID]*luxatomic.Requests{id: reqs}, nil
|
|
}
|