Skip to content

Commit

Permalink
Keeping up to date with neo
Browse files Browse the repository at this point in the history
  • Loading branch information
陈志同 committed Oct 29, 2020
1 parent 1079aa3 commit aa8e120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RpcClient/TransactionManagerFactory.cs
@@ -1,5 +1,6 @@
using Neo.Network.P2P.Payloads;
using Neo.Network.RPC.Models;
using Neo.SmartContract;
using System;
using System.Threading.Tasks;

Expand Down Expand Up @@ -46,7 +47,7 @@ public async Task<TransactionManager> MakeTransactionAsync(byte[] script, Signer
Nonce = (uint)new Random().Next(),
Script = script,
Signers = signers ?? Array.Empty<Signer>(),
ValidUntilBlock = blockCount - 1 + Transaction.MaxValidUntilBlockIncrement,
ValidUntilBlock = blockCount - 1 + ApplicationEngine.MaxTraceableBlocks,
SystemFee = long.Parse(invokeResult.GasConsumed),
Attributes = attributes ?? Array.Empty<TransactionAttribute>(),
};
Expand Down

0 comments on commit aa8e120

Please sign in to comment.