Skip to content

Commit

Permalink
Revert "Inconsistent account naming" (neo-project#329)
Browse files Browse the repository at this point in the history
* Revert "Inconsistent account naming (neo-project#305)"

This reverts commit de55d4f.

* Update .gitignore
  • Loading branch information
cschuchardt88 authored Nov 13, 2023
1 parent 3e20d39 commit 8303d4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -419,4 +419,4 @@ src/neoxp/default.neo-express
src/trace/*.neo-trace
src/worknet/default.neo-worknet
src/worknet/data/*
/src/neoxp/Properties/launchSettings.json
src/neoxp/Properties/launchSettings.json
5 changes: 2 additions & 3 deletions src/neoxp/Extensions/ExpressNodeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,10 @@ public static async Task<ContractParameterParser> GetContractParameterParserAsyn

public static async Task<OneOf<UInt160, None>> TryGetAccountHashAsync(this IExpressNode expressNode, ExpressChain chain, string name)
{
if (name.StartsWith('@'))
if (name.StartsWith('#'))
{
name = name[1..];
var contracts = await expressNode.ListContractsAsync().ConfigureAwait(false);
if (TryGetContractHash(contracts, name, out var contractHash))
if (TryGetContractHash(contracts, name.Substring(1), out var contractHash))
{
return contractHash;
}
Expand Down

0 comments on commit 8303d4c

Please sign in to comment.