Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Update nuget (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Jun 2, 2020
1 parent 96c44fd commit 5070a8a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 19 deletions.
16 changes: 1 addition & 15 deletions neo-cli/CLI/MainService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,20 +285,6 @@ private byte[] LoadDeploymentScript(string nefFilePath, string manifestFilePath,
throw new FormatException($"OpCode not found at {context.InstructionPointer}-{((byte)ci.OpCode).ToString("x2")}");
}

switch (ci.OpCode)
{
case OpCode.SYSCALL:
{
// Check bad syscalls (NEO2)

if (!InteropService.SupportedMethods().Any(u => u.Hash == ci.TokenU32))
{
throw new FormatException($"Syscall not found {ci.TokenU32.ToString("x2")}. Are you using a NEO2 smartContract?");
}
break;
}
}

context.InstructionPointer += ci.Size;
}
}
Expand All @@ -308,7 +294,7 @@ private byte[] LoadDeploymentScript(string nefFilePath, string manifestFilePath,
scriptHash = file.ScriptHash;
using (ScriptBuilder sb = new ScriptBuilder())
{
sb.EmitSysCall(InteropService.Contract.Create, file.Script, manifest.ToJson().ToString());
sb.EmitSysCall(ApplicationEngine.System_Contract_Create, file.Script, manifest.ToJson().ToString());
return sb.ToArray();
}
}
Expand Down
2 changes: 1 addition & 1 deletion neo-cli/neo-cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Neo" Version="3.0.0-CI00924" />
<PackageReference Include="Neo" Version="3.0.0-CI00933" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion neo-gui/GUI/DeployContractDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public byte[] GetScript()
byte[] script = textBox8.Text.HexToBytes();
string manifest = "";
using ScriptBuilder sb = new ScriptBuilder();
sb.EmitSysCall(InteropService.Contract.Create, script, manifest);
sb.EmitSysCall(ApplicationEngine.System_Contract_Create, script, manifest);
return sb.ToArray();
}

Expand Down
2 changes: 1 addition & 1 deletion neo-gui/GUI/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static void SignAndShowInformation(Transaction tx)
if (context.Completed)
{
tx.Witnesses = context.GetWitnesses();
Service.NeoSystem.LocalNode.Tell(new LocalNode.Relay { Inventory = tx });
Service.NeoSystem.Blockchain.Tell(tx);
InformationBox.Show(tx.Hash.ToString(), Strings.SendTxSucceedMessage, Strings.SendTxSucceedTitle);
}
else
Expand Down
2 changes: 1 addition & 1 deletion neo-gui/GUI/SigningTxDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private void button4_Click(object sender, EventArgs e)
return;
}
tx.Witnesses = context.GetWitnesses();
Service.NeoSystem.LocalNode.Tell(new LocalNode.Relay { Inventory = tx });
Service.NeoSystem.Blockchain.Tell(tx);
InformationBox.Show(tx.Hash.ToString(), Strings.RelaySuccessText, Strings.RelaySuccessTitle);
button4.Visible = false;
}
Expand Down

0 comments on commit 5070a8a

Please sign in to comment.