Skip to content

Commit

Permalink
feat: fix auction old owner args
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpiotzh committed Jan 8, 2025
1 parent 3f0f4c9 commit 9f98dd1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions http_server/handle/auction_bid.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,14 @@ func (h *HttpHandle) buildAuctionBidTx(req *reqBuildTx, p *auctionBidParams) (*t
}
accCellCapacity := accTx.Transaction.Outputs[builder.Index].Capacity
oldAccOwnerArgs := accTx.Transaction.Outputs[builder.Index].Lock.Args
oldOwnerHex, _, err := h.dasCore.Daf().ArgsToHex(oldAccOwnerArgs)
if err != nil {
return nil, fmt.Errorf("ArgsToHex err: %s", err.Error())
}
oldAccOwnerArgs, err = h.dasCore.Daf().HexToArgs(oldOwnerHex, oldOwnerHex)
if err != nil {
return nil, fmt.Errorf("HexToArgs err: %s", err.Error())
}

actionWitness, err := witness.GenActionDataWitness(common.DasActionBidExpiredAccountAuction, nil)
if err != nil {
Expand Down

0 comments on commit 9f98dd1

Please sign in to comment.