Fix escrowid and offerid

This commit is contained in:
Richard Holland
2022-06-16 09:22:23 +00:00
parent 602c280dd4
commit 9ff1290093
2 changed files with 3 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ CancelOffer::doApply()
Keylet cancel =
hooksEnabled && offerID && offerSequence == 0
? keylet::offer(account_, *offerID)
? Keylet(ltOFFER, *offerID)
: keylet::offer(account_, offerSequence);
if (auto sleOffer = view().peek(cancel))

View File

@@ -475,7 +475,7 @@ EscrowFinish::doApply()
Keylet k =
escrowID
? keylet::escrow(ctx_.tx[sfOwner], *escrowID)
? Keylet(ltESCROW, *escrowID)
: keylet::escrow(ctx_.tx[sfOwner], ctx_.tx[sfOfferSequence]);
auto const slep = ctx_.view().peek(k);
@@ -706,7 +706,7 @@ EscrowCancel::doApply()
Keylet k =
escrowID
? keylet::escrow(ctx_.tx[sfOwner], *escrowID)
? Keylet(ltESCROW, *escrowID)
: keylet::escrow(ctx_.tx[sfOwner], ctx_.tx[sfOfferSequence]);
auto const slep = ctx_.view().peek(k);