fix_: crash sending collectibles fixed

When mapping `MultipathProcessorTxArgs` to `ProcessorInputParams` setting `FromChain` was missed.
This commit is contained in:
Sale Djenic 2024-08-18 21:16:09 +02:00 committed by Anthony Laibe
parent 97f4c6e3df
commit 2f08c4c6f9
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import (
"github.com/status-im/status-go/contracts/community-tokens/collectibles"
"github.com/status-im/status-go/contracts/erc721"
"github.com/status-im/status-go/eth-node/types"
"github.com/status-im/status-go/params"
"github.com/status-im/status-go/rpc"
"github.com/status-im/status-go/services/wallet/token"
"github.com/status-im/status-go/transactions"
@ -150,6 +151,9 @@ func (s *ERC721Processor) sendOrBuild(sendArgs *MultipathProcessorTxArgs, signer
useSafeTransferFrom := true
inputParams := ProcessorInputParams{
FromChain: &params.Network{
ChainID: sendArgs.ChainID,
},
FromAddr: from,
ToAddr: sendArgs.ERC721TransferTx.Recipient,
FromToken: &token.Token{