diff --git a/src/TokensTracker/Trackers/NEP-11/Nep11Tracker.cs b/src/TokensTracker/Trackers/NEP-11/Nep11Tracker.cs index 987ffeae9..891197e00 100644 --- a/src/TokensTracker/Trackers/NEP-11/Nep11Tracker.cs +++ b/src/TokensTracker/Trackers/NEP-11/Nep11Tracker.cs @@ -113,7 +113,7 @@ private void SaveDivisibleNFTBalance(TransferRecord record, DataCache snapshot) using ScriptBuilder sb = new(); sb.EmitDynamicCall(record.asset, "balanceOf", record.from, record.tokenId); sb.EmitDynamicCall(record.asset, "balanceOf", record.to, record.tokenId); - using ApplicationEngine engine = ApplicationEngine.Run(sb.ToArray(), snapshot, settings: _neoSystem.Settings); + using ApplicationEngine engine = ApplicationEngine.Run(sb.ToArray(), snapshot, settings: _neoSystem.Settings, gas: 3400_0000); if (engine.State.HasFlag(VMState.FAULT) || engine.ResultStack.Count != 2) { Console.WriteLine($"Fault: from[{record.from}] to[{record.to}] get {record.asset} token [{record.tokenId.GetSpan().ToHexString()}] balance fault", LogLevel.Warning); diff --git a/src/TokensTracker/Trackers/NEP-17/Nep17Tracker.cs b/src/TokensTracker/Trackers/NEP-17/Nep17Tracker.cs index 84c2d680a..1b70e3e7d 100644 --- a/src/TokensTracker/Trackers/NEP-17/Nep17Tracker.cs +++ b/src/TokensTracker/Trackers/NEP-17/Nep17Tracker.cs @@ -76,7 +76,6 @@ public override void OnPersist(NeoSystem system, Block block, DataCache snapshot try { SaveNep17Balance(balanceChangeRecord, snapshot); - } catch (Exception e) { @@ -112,7 +111,7 @@ private void SaveNep17Balance(BalanceChangeRecord balanceChanged, DataCache snap var key = new Nep17BalanceKey(balanceChanged.User, balanceChanged.Asset); using ScriptBuilder sb = new(); sb.EmitDynamicCall(balanceChanged.Asset, "balanceOf", balanceChanged.User); - using ApplicationEngine engine = ApplicationEngine.Run(sb.ToArray(), snapshot, settings: _neoSystem.Settings); + using ApplicationEngine engine = ApplicationEngine.Run(sb.ToArray(), snapshot, settings: _neoSystem.Settings, gas: 1700_0000); if (engine.State.HasFlag(VMState.FAULT) || engine.ResultStack.Count == 0) {