Skip to content

Commit 6a98360

Browse files
nits
1 parent 7cdb4f5 commit 6a98360

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

local/blockchain.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -814,8 +814,7 @@ func newWallet(
814814
pTXs[id] = tx
815815
}
816816
pUTXOs := common.NewChainUTXOs(constants.PlatformChainID, utxos)
817-
xChainID := xCTX.BlockchainID
818-
xUTXOs := common.NewChainUTXOs(xChainID, utxos)
817+
xUTXOs := common.NewChainUTXOs(xCTX.BlockchainID, utxos)
819818
var w wallet
820819
w.addr = genesis.EWOQKey.PublicKey().Address()
821820
w.pCTX = pCTX
@@ -966,9 +965,8 @@ func importPChainFromXChain(ctx context.Context, w *wallet, owner *secp256k1fx.O
966965
pWallet := w.pWallet
967966
cctx, cancel := createDefaultCtx(ctx)
968967
defer cancel()
969-
xChainID := w.xCTX.BlockchainID
970968
_, err := pWallet.IssueImportTx(
971-
xChainID,
969+
w.xCTX.BlockchainID,
972970
owner,
973971
common.WithContext(cctx),
974972
defaultPoll,

0 commit comments

Comments
 (0)