private static ExecutionState Runtime_BurnToken(RuntimeVM vm) { vm.ExpectStackSize(3); var source = vm.PopAddress(); var symbol = vm.PopString("symbol"); var tokenID = vm.PopNumber("token ID"); vm.BurnToken(symbol, source, tokenID); return(ExecutionState.Running); }
private static ExecutionState Runtime_BurnToken(RuntimeVM Runtime) { ExpectStackSize(Runtime, 3); VMObject temp; var source = PopAddress(Runtime); temp = Runtime.Stack.Pop(); Runtime.Expect(temp.Type == VMType.String, "expected string for symbol"); var symbol = temp.AsString(); var tokenID = PopNumber(Runtime, "token ID"); Runtime.BurnToken(symbol, source, tokenID); return(ExecutionState.Running); }