Skip to content

Commit 58d39a1

Browse files
shargonAnnaShaleva
andauthored
Update src/Neo/SmartContract/ApplicationEngine.cs
Co-authored-by: Anna Shaleva <[email protected]>
1 parent 391edb6 commit 58d39a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Neo/SmartContract/ApplicationEngine.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@ protected ApplicationEngine(
236236
}
237237
else
238238
{
239-
// The values have the decimals stored
239+
// The values have the decimals stored starting from OnPersist of Faun's block.
240240
_execFeeFactor = NativeContract.Policy.GetExecPicoFeeFactor(this);
241+
if (trigger == TriggerType.OnPersist && persistingIndex > 0 && !settings.IsHardforkEnabled(Hardfork.HF_Faun, persistingIndex - 1))
242+
_execFeeFactor *= FeeFactor;
241243
}
242244

243245
StoragePrice = NativeContract.Policy.GetStoragePrice(snapshotCache);

0 commit comments

Comments
 (0)