Skip to content

Commit

Permalink
Code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin Qiao committed Mar 27, 2020
1 parent 929aa41 commit 0a37b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/SmartContract/InteropService.Contract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private static bool Contract_CreateStandardAccount(ApplicationEngine engine)
{
if (!engine.TryPop(out ReadOnlySpan<byte> pubKey)) return false;
UInt160 scriptHash = SmartContract.Contract.CreateSignatureRedeemScript(ECPoint.DecodePoint(pubKey, ECCurve.Secp256r1)).ToScriptHash();
engine.CurrentContext.EvaluationStack.Push(scriptHash.ToArray());
engine.Push(scriptHash.ToArray());
return true;
}
}
Expand Down

0 comments on commit 0a37b33

Please sign in to comment.