@@ -22,7 +22,6 @@ import (
2222
2323 "github.com/imdario/mergo"
2424
25- "github.com/ethereum/go-ethereum/common"
2625 "github.com/ethereum/go-ethereum/common/hexutil"
2726 ethcrypto "github.com/ethereum/go-ethereum/crypto"
2827 signercore "github.com/ethereum/go-ethereum/signer/core/apitypes"
@@ -1938,8 +1937,7 @@ func (b *GethStatusBackend) startNode(config *params.NodeConfig) (err error) {
19381937 return
19391938 }
19401939
1941- b .transactor .SetNetworkID (config .NetworkID )
1942- b .transactor .SetRPC (b .statusNode .RPCClient (), rpc .DefaultCallTimeout )
1940+ b .transactor .SetEthClientGetter (b .statusNode .RPCClient (), rpc .DefaultCallTimeout )
19431941
19441942 signal .SendNodeStarted ()
19451943
@@ -1994,15 +1992,10 @@ func (b *GethStatusBackend) CallInProcessRPC(inputJSON string) string {
19941992 return b .statusNode .CallInProcessRPC (inputJSON )
19951993}
19961994
1995+ // @deprecated
19971996// SendTransaction creates a new transaction and waits until it's complete.
19981997func (b * GethStatusBackend ) SendTransaction (sendArgs wallettypes.SendTxArgs , password string ) (hash types.Hash , err error ) {
1999- verifiedAccount , err := b .getVerifiedWalletAccount (sendArgs .From .String (), password )
2000- if err != nil {
2001- return hash , err
2002- }
2003-
2004- hash , _ , err = b .transactor .SendTransaction (sendArgs , verifiedAccount , - 1 )
2005- return hash , err
1998+ return types.Hash {}, errors .New ("method not supported" )
20061999}
20072000
20082001func (b * GethStatusBackend ) SendTransactionWithChainID (chainID uint64 , sendArgs wallettypes.SendTxArgs , password string ) (hash types.Hash , err error ) {
@@ -2015,18 +2008,15 @@ func (b *GethStatusBackend) SendTransactionWithChainID(chainID uint64, sendArgs
20152008 return hash , err
20162009}
20172010
2011+ // @deprecated
20182012func (b * GethStatusBackend ) SendTransactionWithSignature (sendArgs wallettypes.SendTxArgs , sig []byte ) (hash types.Hash , err error ) {
2019- txWithSignature , err := b .transactor .BuildTransactionWithSignature (b .transactor .NetworkID (), sendArgs , sig )
2020- if err != nil {
2021- return hash , err
2022- }
2023-
2024- return b .transactor .SendTransactionWithSignature (common .Address (sendArgs .From ), sendArgs .Symbol , txWithSignature )
2013+ return types.Hash {}, errors .New ("method not supported" )
20252014}
20262015
2016+ // @deprecated
20272017// HashTransaction validate the transaction and returns new sendArgs and the transaction hash.
20282018func (b * GethStatusBackend ) HashTransaction (sendArgs wallettypes.SendTxArgs ) (wallettypes.SendTxArgs , types.Hash , error ) {
2029- return b . transactor . HashTransaction ( sendArgs )
2019+ return wallettypes. SendTxArgs {}, types. Hash {}, errors . New ( "method not supported" )
20302020}
20312021
20322022// SignMessage checks the pwd vs the selected account and passes on the signParams
0 commit comments