This commit is contained in:
jl777
2018-09-10 02:35:54 -11:00
parent df095f8d23
commit 77fad4320d
2 changed files with 21 additions and 2 deletions

View File

@@ -5430,9 +5430,9 @@ UniValue gatewaysbind(const UniValue& params, bool fHelp)
pubkeys.resize(N);
for (i=0; i<N; i++)
{
if ( params.size() < 5+i+1 )
if ( params.size() < 6+i+1 )
throw runtime_error("not enough parameters for N pubkeys\n");
pubkey = ParseHex(params[5+i].get_str().c_str());
pubkey = ParseHex(params[6+i].get_str().c_str());
pubkeys.push_back(pubkey2pk(pubkey));
}
hex = GatewaysBind(0,coin,tokenid,totalsupply,oracletxid,M,N,pubkeys);