signer/core: move API JSON types to separate package (#23275)
This PR moves (some) account types into a standalone package, to avoid depending on signer/core from accounts/external.
This commit is contained in:
committed by
GitHub
parent
8f11d279d2
commit
295bc35ecf
@ -7,6 +7,7 @@ import (
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||
"github.com/ethereum/go-ethereum/common/math"
|
||||
"github.com/ethereum/go-ethereum/signer/core/apitypes"
|
||||
)
|
||||
|
||||
// GnosisSafeTx is a type to parse the safe-tx returned by the relayer,
|
||||
@ -76,9 +77,9 @@ func (tx *GnosisSafeTx) ToTypedData() TypedData {
|
||||
|
||||
// ArgsForValidation returns a SendTxArgs struct, which can be used for the
|
||||
// common validations, e.g. look up 4byte destinations
|
||||
func (tx *GnosisSafeTx) ArgsForValidation() *SendTxArgs {
|
||||
func (tx *GnosisSafeTx) ArgsForValidation() *apitypes.SendTxArgs {
|
||||
gp := hexutil.Big(tx.GasPrice)
|
||||
args := &SendTxArgs{
|
||||
args := &apitypes.SendTxArgs{
|
||||
From: tx.Safe,
|
||||
To: &tx.To,
|
||||
Gas: hexutil.Uint64(tx.SafeTxGas.Uint64()),
|
||||
|
Reference in New Issue
Block a user