public override Empty SetMethodCallingThreshold(SetMethodCallingThresholdInput input) { AssertPerformedByContractOwner(); State.MethodCallingThresholds[input.Method] = new MethodCallingThreshold { SymbolToAmount = { input.SymbolToAmount } }; return(new Empty()); }
public override Empty SetMethodCallingThreshold(SetMethodCallingThresholdInput input) { Assert(State.Admin.Value == Context.Sender, "No permission."); State.MethodCallingThresholds[input.Method] = new MethodCallingThreshold { SymbolToAmount = { input.SymbolToAmount } }; return(new Empty()); }