From 1d581d4bd501ac9e27b95d603a4d2801350d5349 Mon Sep 17 00:00:00 2001 From: scorpiotzh <835598264@qq.com> Date: Fri, 12 Aug 2022 14:29:32 +0800 Subject: [PATCH] feat: pre tx add key record config cell dep --- txtool/pre_register.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/txtool/pre_register.go b/txtool/pre_register.go index 2509a047..027c1bb3 100644 --- a/txtool/pre_register.go +++ b/txtool/pre_register.go @@ -424,6 +424,10 @@ func (t *TxTool) buildOrderPreRegisterTx(p *preRegisterTxParams) (*txbuilder.Bui if err != nil { return nil, fmt.Errorf("GetDasConfigCellInfo err: %s", err.Error()) } + recordConfig, err := core.GetDasConfigCellInfo(common.ConfigCellTypeArgsRecordNamespace) + if err != nil { + return nil, fmt.Errorf("GetDasConfigCellInfo err: %s", err.Error()) + } bys, err := blake2b.Blake160([]byte(strings.TrimSuffix(p.order.Account, common.DasAccountSuffix))) if err != nil { @@ -448,6 +452,7 @@ func (t *TxTool) buildOrderPreRegisterTx(p *preRegisterTxParams) (*txbuilder.Bui releaseConfig.ToCellDep(), unavailableConfig.ToCellDep(), PreservedAccountConfig.ToCellDep(), + recordConfig.ToCellDep(), ) for k, _ := range accountCharTypeMap { switch k {