Merge pull request #91 from Xahau/import-tests

Import tests
This commit is contained in:
RichardAH
2023-08-15 12:15:09 +02:00
committed by GitHub
3 changed files with 1180 additions and 412 deletions

View File

@@ -1262,7 +1262,8 @@ Import::doApply()
// update the ledger header
XRPAmount totalBurn = XRPAmount{(burn.xrp() + bonusAmount)};
XRPAmount totalBurn =
XRPAmount{(burn.xrp() + (create ? bonusAmount : beast::zero))};
ctx_.rawView().rawDestroyXRP(-totalBurn);
return tesSUCCESS;