Skip to content

Commit

Permalink
Merge pull request #101 from Ashuaidehao/dev-back
Browse files Browse the repository at this point in the history
Vote
  • Loading branch information
Ashuaidehao authored Mar 23, 2021
2 parents 9fa9e63 + d4c2ca2 commit 6416a2e
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 73 deletions.
151 changes: 83 additions & 68 deletions neo3-gui/neo3-gui/ClientApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions neo3-gui/neo3-gui/ClientApp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neo-gui",
"version": "1.2.1",
"version": "1.2.2",
"private": true,
"main": "main.js",
"homepage": "./",
Expand Down Expand Up @@ -111,7 +111,7 @@
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/preset-env": "^7.8.7",
"cross-env": "^7.0.2",
"electron": "^7.1.14",
"electron": "^9.4.0",
"electron-builder": "^22.4.1",
"electron-devtools-installer": "^3.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion neo3-gui/neo3-gui/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public static Transaction InitTransaction(this Wallet wallet, byte[] script, par
/// <returns></returns>
public static Transaction InitTransaction(this Wallet wallet, byte[] script, params Signer[] signers)
{
var tx = wallet.MakeTransaction(GetDefaultSnapshot(), script, null, signers);
var tx = wallet.MakeTransaction(GetDefaultSnapshot(), script, null, signers, maxGas: 2000_00000000);
return tx;
}

Expand Down
4 changes: 2 additions & 2 deletions neo3-gui/neo3-gui/Services/ApiServices/ContractApiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ public async Task<object> ApplyForValidator(string pubkey)
return Error(ErrorCode.InvalidPara);
}
var snapshot = Helpers.GetDefaultSnapshot();
var validators = NativeContract.NEO.GetCommittee(snapshot);
if (validators.Any(v => v.Equals(publicKey)))
var candidates = NativeContract.NEO.GetCandidates(snapshot);
if (candidates.Any(v => v.PublicKey.Equals(publicKey)))
{
return Error(ErrorCode.ValidatorAlreadyExist);
}
Expand Down

0 comments on commit 6416a2e

Please sign in to comment.