Skip to content

Commit

Permalink
feat: pre tx add key record config cell dep
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpiotzh committed Aug 12, 2022
1 parent e88d6d9 commit 1d581d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions txtool/pre_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 1d581d4

Please sign in to comment.