Skip to content

Commit

Permalink
modify hash seq
Browse files Browse the repository at this point in the history
  • Loading branch information
suerlych committed Dec 7, 2024
1 parent a4768ab commit 55800a6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,14 @@ public override Empty SpecialSeedRenew(SpecialSeedRenewInput input)

var specialSeed = State.SpecialSeedMap[seedOwnedSymbol];
Assert(specialSeed != null, "Not Special seed " + input.SeedSymbol + " not support renew.");
var requestStr = string.Concat(input.Buyer.ToBase58(), input.SeedSymbol);
requestStr = string.Concat(requestStr, input.Price.Symbol, input.Price.Amount, input.OpTime);
var requestStr = string.Concat(input.Buyer.ToBase58(), input.SeedSymbol,input.Price.Symbol, input.Price.Amount);
requestStr = string.Concat(requestStr,input.OpTime);
CheckSeedRenewRequestHash(requestStr, input.RequestHash);
var lastAddTime = State.SeedRenewTimeMap[input.SeedSymbol];
Assert(input.OpTime > lastAddTime, "Invalid param OpTime");
State.SeedRenewTimeMap[input.SeedSymbol] = input.OpTime;


var price = input.Price;
Assert(price != null, "Symbol price not exits");
var priceTokenInfo = GetTokenInfo(price.Symbol);
Expand Down

0 comments on commit 55800a6

Please sign in to comment.