explicitly initialize sfBalance in Payment.cpp

This commit is contained in:
Mayukha Vadari
2026-03-19 14:27:27 -04:00
committed by GitHub
parent a43de47f13
commit 253918c168

View File

@@ -383,6 +383,7 @@ Payment::doApply()
sleDst = std::make_shared<SLE>(k);
sleDst->setAccountID(sfAccount, dstAccountID);
sleDst->setFieldU32(sfSequence, view().seq());
sleDst->setFieldAmount(sfBalance, XRPAmount(beast::zero);
view().insert(sleDst);
}